Skip to content

Commit 16aad7e

Browse files
committed
Skip deployment if it is not master build in main repo.
1 parent eaec0b8 commit 16aad7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ addons:
2929

3030
jobs:
3131
include:
32-
- script: xvfb-run yarn test
32+
- stage: test
33+
script: xvfb-run yarn test
3334
after_success: yarn test:coverage
3435
env: '#comment = yarn test'
35-
- script: xvfb-run yarn test:saucelabs
36+
- stage: test
37+
script: xvfb-run yarn test:saucelabs
3638
env: '#comment = yarn test:saucelabs'
3739
if: type = push
3840
- stage: deploy
@@ -42,6 +44,4 @@ jobs:
4244
skip_cleanup: true
4345
provider: script
4446
script: yarn release --canary
45-
on:
46-
repo: firebase/firebase-js-sdk
47-
branch: master
47+
if: type = push AND repo = firebase/firebase-js-sdk AND branch = master

0 commit comments

Comments
 (0)