mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Make release stage conditional by branch
If the branch isn't a release branch, don't even try to do the release stage. This should speed up PR tests.
This commit is contained in:
parent
bfde3f476c
commit
756b7941af
1 changed files with 4 additions and 6 deletions
10
.travis.yml
10
.travis.yml
|
@ -29,15 +29,13 @@ jobs:
|
||||||
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
||||||
deploy:
|
deploy:
|
||||||
- provider: npm
|
- provider: npm
|
||||||
"on":
|
|
||||||
all_branches: true
|
|
||||||
condition: $RELEASE_BRANCHES =~ $TRAVIS_BRANCH
|
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
email: $NPM_EMAIL
|
email: $NPM_EMAIL
|
||||||
api_key: $NPM_TOKEN
|
api_key: $NPM_TOKEN
|
||||||
- provider: script
|
- provider: script
|
||||||
"on":
|
|
||||||
all_branches: true
|
|
||||||
condition: $RELEASE_BRANCHES =~ $TRAVIS_BRANCH
|
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: npm run --silent deploy -- -x -r $GH_PAGES_REPO
|
script: npm run --silent deploy -- -x -r $GH_PAGES_REPO
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- name: release
|
||||||
|
if: branch in (master, develop)
|
||||||
|
|
Loading…
Reference in a new issue