mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
ci: fix calls to scripts expecting Travis
This commit is contained in:
parent
e6d3673164
commit
44bed7ecdf
1 changed files with 38 additions and 38 deletions
|
@ -3,14 +3,6 @@ orbs:
|
||||||
node: circleci/node@5
|
node: circleci/node@5
|
||||||
commands:
|
commands:
|
||||||
deploy_npm:
|
deploy_npm:
|
||||||
steps:
|
|
||||||
- when:
|
|
||||||
condition:
|
|
||||||
or:
|
|
||||||
- equal: [ master, <<pipeline.git.branch>> ]
|
|
||||||
- equal: [ develop, <<pipeline.git.branch>> ]
|
|
||||||
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
|
||||||
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
# This relies on deploy_gh_pages to set git user info first
|
# This relies on deploy_gh_pages to set git user info first
|
||||||
|
@ -44,19 +36,27 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install libgif-dev
|
sudo apt install libgif-dev
|
||||||
travis/setup-git.sh
|
TRAVIS_BRANCH="${CIRCLECI_BRANCH}" travis/setup-git.sh
|
||||||
travis/install-assets.sh
|
travis/install-assets.sh
|
||||||
npm set progress=false
|
npm set progress=false
|
||||||
which gulp || sudo npm install -g gulp-cli
|
which gulp || sudo npm install -g gulp-cli
|
||||||
- run: npm install # TODO: switch to node/install-packages after adding package_lock.json
|
- run: npm install # TODO: switch to node/install-packages after adding package_lock.json
|
||||||
|
- run: gulp jshint
|
||||||
|
- run: gulp minify
|
||||||
|
- run: gulp test
|
||||||
|
- run: gulp zip
|
||||||
|
- when:
|
||||||
|
condition:
|
||||||
|
or:
|
||||||
|
- equal: [ master, <<pipeline.git.branch>> ]
|
||||||
|
- equal: [ develop, <<pipeline.git.branch>> ]
|
||||||
|
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
||||||
|
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
||||||
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Build & Test
|
name: travis/deploy-prebuilt.sh
|
||||||
command: |
|
command: |
|
||||||
gulp jshint
|
TRAVIS_TAG="${CIRCLE_TAG}" TRAVIS_COMMIT="${CIRCLE_SHA1}" travis/deploy-prebuilt.sh
|
||||||
gulp minify
|
|
||||||
gulp test
|
|
||||||
gulp zip
|
|
||||||
[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh || true
|
|
||||||
- deploy_npm
|
- deploy_npm
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
Loading…
Reference in a new issue