Skip to content

Commit 27ab620

Browse files
sumitarorahansl
authored andcommitted
fix(@angular/cli): fix travis deployment
1 parent 93424b1 commit 27ab620

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.travis.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ matrix:
3232
- node_js: "6"
3333
os: linux
3434
env: NODE_SCRIPT="tests/run_e2e.js --eject --glob=tests/build/**"
35+
- node_js: "6"
36+
os: linux
37+
env: DEPLOY_SCRIPT="scripts/git-builds.js"
3538

3639
# Optional builds.
3740
- node_js: "6"
@@ -64,9 +67,4 @@ before_install:
6467
script:
6568
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
6669
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi
67-
68-
deploy:
69-
provider: script
70-
script: node scripts/git-builds.js
71-
on:
72-
branch: master
70+
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then node $DEPLOY_SCRIPT; fi

0 commit comments

Comments
 (0)