1313 matrix :
1414 - JOB=ci-checks
1515 - JOB=unit BROWSER_PROVIDER=saucelabs
16- # - JOB=docs-e2e BROWSER_PROVIDER=saucelabs
17- # - JOB=e2e TEST_TARGET=jqlite BROWSER_PROVIDER=saucelabs
18- # - JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=saucelabs
16+ - JOB=docs-e2e BROWSER_PROVIDER=saucelabs
17+ - JOB=e2e TEST_TARGET=jqlite BROWSER_PROVIDER=saucelabs
18+ - JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=saucelabs
1919 global :
2020 - CXX=g++-4.8
2121 - SAUCE_USERNAME=angular-ci
@@ -50,14 +50,10 @@ jobs:
5050 - stage : deploy
5151 env :
5252 - JOB=deploy
53- - DIST_TAG=""
5453 before_script : skip
5554 script :
5655 - " ./scripts/travis/build.sh"
57- - echo $SAUCE_ACCESS_KEY
58- - echo $DIST_TAG
59- - echo $TRAVIS_TAG
60- # Work around the 10min Travis timeout so the firebase / gcs code deploy can complete
56+ # Work around the 10min Travis timeout so the code.angularjs firebase+gcs code deploy can complete
6157 before_deploy : |
6258 function keep_alive() {
6359 while true; do
@@ -73,18 +69,20 @@ jobs:
7369 secure : $FIREBASE_TOKEN
7470 on :
7571 repo : angular/angular.js
76- condition : $TRAVIS_TAG = '' && $( jq ".distTag" "package.json" | tr -d "\"[:space:]" ) = next
7772 all_branches : true
73+ # deploy a new docs version when the commit is tagged on the "latest" npm version
74+ condition : $TRAVIS_TAG != '' && $( jq ".distTag" "package.json" | tr -d "\"[:space:]" ) = latest
7875 - provider : gcs
76+ skip_cleanup : true
7977 access_key_id : GOOGLDB7W2J3LFHICF3R
8078 secret_access_key :
8179 secure : tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
8280 bucket : code-angularjs-org-338b8.appspot.com
8381 local-dir : upload
84- skip_cleanup : true
8582 detect_encoding : true # detects gzip compression
8683 on :
8784 repo : angular/angular.js
8885 all_branches : true
86+ # upload the build when the commit is tagged or the branch is "master"
8987 condition : $TRAVIS_TAG != '' || ($TRAVIS_PULL_REQUEST = false && $TRAVIS_BRANCH = master)
9088
0 commit comments