mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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
|
||||
commands:
|
||||
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:
|
||||
- run:
|
||||
# This relies on deploy_gh_pages to set git user info first
|
||||
|
@ -44,19 +36,27 @@ jobs:
|
|||
command: |
|
||||
sudo apt update
|
||||
sudo apt install libgif-dev
|
||||
travis/setup-git.sh
|
||||
TRAVIS_BRANCH="${CIRCLECI_BRANCH}" travis/setup-git.sh
|
||||
travis/install-assets.sh
|
||||
npm set progress=false
|
||||
which gulp || sudo npm install -g gulp-cli
|
||||
- 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:
|
||||
name: Build & Test
|
||||
name: travis/deploy-prebuilt.sh
|
||||
command: |
|
||||
gulp jshint
|
||||
gulp minify
|
||||
gulp test
|
||||
gulp zip
|
||||
[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh || true
|
||||
TRAVIS_TAG="${CIRCLE_TAG}" TRAVIS_COMMIT="${CIRCLE_SHA1}" travis/deploy-prebuilt.sh
|
||||
- deploy_npm
|
||||
workflows:
|
||||
version: 2
|
||||
|
|
Loading…
Reference in a new issue