Skip to content

Commit

Permalink
fix(@angular/cli): fix travis deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora authored and hansl committed Jun 2, 2017
1 parent 93424b1 commit 27ab620
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ matrix:
- node_js: "6"
os: linux
env: NODE_SCRIPT="tests/run_e2e.js --eject --glob=tests/build/**"
- node_js: "6"
os: linux
env: DEPLOY_SCRIPT="scripts/git-builds.js"

# Optional builds.
- node_js: "6"
Expand Down Expand Up @@ -64,9 +67,4 @@ before_install:
script:
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi

deploy:
provider: script
script: node scripts/git-builds.js
on:
branch: master
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then node $DEPLOY_SCRIPT; fi

0 comments on commit 27ab620

Please sign in to comment.