2014-09-29 17:20:23 -04:00
|
|
|
language: node_js
|
2014-12-22 20:50:10 -05:00
|
|
|
sudo: false
|
2014-09-29 17:20:23 -04:00
|
|
|
node_js:
|
2015-04-16 17:07:43 -04:00
|
|
|
- '0.12'
|
2015-04-16 00:37:13 -04:00
|
|
|
|
2015-07-23 16:51:57 -04:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- g3sync
|
|
|
|
|
2015-04-16 00:37:13 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2015-06-01 13:02:16 -04:00
|
|
|
- $HOME/.pub-cache
|
2015-04-16 00:37:13 -04:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
env:
|
2014-10-28 06:51:00 -04:00
|
|
|
global:
|
2015-01-08 17:20:05 -05:00
|
|
|
- KARMA_BROWSERS=DartiumWithWebPlatform
|
|
|
|
- E2E_BROWSERS=Dartium
|
2014-09-29 17:20:23 -04:00
|
|
|
- LOGS_DIR=/tmp/angular-build/logs
|
2015-09-29 09:09:02 -04:00
|
|
|
- SAUCE_USERNAME=angular-ci
|
|
|
|
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
|
2015-01-08 17:20:05 -05:00
|
|
|
- ARCH=linux-x64
|
2015-04-01 20:29:23 -04:00
|
|
|
# Token for tsd to increase github rate limit
|
|
|
|
# See https://github.com/DefinitelyTyped/tsd#tsdrc
|
|
|
|
# This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables
|
|
|
|
# because those are not visible for pull requests, and those should also be reliable.
|
|
|
|
# This SSO token belongs to github account angular-github-ratelimit-token which has no access
|
|
|
|
# (password is in Valentine)
|
|
|
|
- TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}'
|
2015-07-27 20:00:01 -04:00
|
|
|
# GITHUB_TOKEN_ANGULAR
|
|
|
|
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
|
2015-02-12 18:00:43 -05:00
|
|
|
matrix:
|
2015-07-29 20:00:54 -04:00
|
|
|
# Order: slowest build on top, so that we don't hog VMs while waiting for others to complete.
|
2015-06-02 10:29:09 -04:00
|
|
|
- MODE=dart DART_CHANNEL=stable
|
|
|
|
- MODE=dart DART_CHANNEL=dev
|
2015-08-18 07:46:23 -04:00
|
|
|
- MODE=saucelabs DART_CHANNEL=dev
|
2015-06-02 10:29:09 -04:00
|
|
|
- MODE=dart_experimental DART_CHANNEL=dev
|
2015-07-27 20:00:01 -04:00
|
|
|
- MODE=js DART_CHANNEL=dev
|
2015-08-20 16:19:34 -04:00
|
|
|
- MODE=router DART_CHANNEL=dev
|
2015-07-29 20:00:54 -04:00
|
|
|
- MODE=lint DART_CHANNEL=dev
|
2015-06-02 10:29:09 -04:00
|
|
|
|
2015-07-27 20:00:01 -04:00
|
|
|
matrix:
|
2015-06-02 10:29:09 -04:00
|
|
|
allow_failures:
|
|
|
|
- env: "MODE=saucelabs DART_CHANNEL=dev"
|
2015-08-19 18:29:36 -04:00
|
|
|
- env: "MODE=dart_experimental DART_CHANNEL=dev"
|
2014-09-29 17:20:23 -04:00
|
|
|
|
2015-06-02 17:09:32 -04:00
|
|
|
addons:
|
|
|
|
firefox: "38.0"
|
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
before_install:
|
2015-04-01 20:29:23 -04:00
|
|
|
- echo ${TSDRC} > .tsdrc
|
2014-09-29 17:20:23 -04:00
|
|
|
- export DISPLAY=:99.0
|
2015-01-08 17:20:05 -05:00
|
|
|
- export GIT_SHA=$(git rev-parse HEAD)
|
|
|
|
- ./scripts/ci/init_android.sh
|
2015-02-13 17:59:29 -05:00
|
|
|
- ./scripts/ci/install_dart.sh ${DART_CHANNEL} ${ARCH}
|
2014-09-29 17:20:23 -04:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- if [[ -e SKIP_TRAVIS_TESTS ]]; then { cat SKIP_TRAVIS_TESTS ; exit 0; } fi
|
2015-09-29 09:09:02 -04:00
|
|
|
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && SAUCE_USERNAME="angular2-ci" && SAUCE_ACCESS_KEY="693ebc16208a-0b5b-1614-8d66-a2662f4e" || true'
|
2015-04-16 00:32:39 -04:00
|
|
|
|
|
|
|
install:
|
2015-04-16 00:57:52 -04:00
|
|
|
# Update npm
|
2015-05-15 19:17:28 -04:00
|
|
|
- npm install -g npm@2.9.1
|
2015-04-16 00:57:52 -04:00
|
|
|
- npm --version
|
2015-04-16 00:32:39 -04:00
|
|
|
# Check the size of caches
|
|
|
|
- du -sh ./node_modules || true
|
2015-06-06 02:37:09 -04:00
|
|
|
# Install npm dependecies
|
|
|
|
- npm install
|
2015-04-16 00:32:39 -04:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
before_script:
|
|
|
|
- mkdir -p $LOGS_DIR
|
2015-07-27 20:00:01 -04:00
|
|
|
- ./scripts/ci/presubmit-queue-setup.sh
|
2015-04-16 00:32:39 -04:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
script:
|
2015-02-13 17:59:29 -05:00
|
|
|
- ./scripts/ci/build_and_test.sh ${MODE}
|
2015-04-16 00:32:39 -04:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
after_script:
|
2015-01-08 17:20:05 -05:00
|
|
|
- ./scripts/ci/print-logs.sh
|
2015-07-27 20:00:01 -04:00
|
|
|
- ./scripts/ci/after-script.sh
|
2015-04-16 00:32:39 -04:00
|
|
|
|
2015-03-07 14:57:51 -05:00
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
2015-03-12 18:08:40 -04:00
|
|
|
- https://webhooks.gitter.im/e/1ef62e23078036f9cee4
|
2015-07-27 00:43:49 -04:00
|
|
|
# trigger Buildtime Trend Service to parse Travis CI log
|
|
|
|
- https://buildtimetrend.herokuapp.com/travis
|
|
|
|
on_success: always # options: [always|never|change] default: always
|
2015-03-07 14:57:51 -05:00
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: false # default: false
|
2015-03-12 18:08:40 -04:00
|
|
|
slack:
|
|
|
|
secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0=
|
2015-07-08 16:03:10 -04:00
|
|
|
|
2015-07-08 21:51:13 -04:00
|
|
|
deploy:
|
|
|
|
- provider: gcs
|
|
|
|
# This is for project angular-github-babysitter
|
|
|
|
access_key_id: GOOGIOQTDBEOPBUAWFZQ
|
|
|
|
secret_access_key:
|
|
|
|
secure: "MEDggllZ5fw4wI9CEUi8WR6jKsKXqdRF/DLxSNC2JpzM5RlVeBm0uqjntYT1Cf1dASvQ2/+vZCUikL/3A48NcoEYRHXGmxu8D6t/SvleQD8Xv434xFOdsa2QqP/HiCtqCLOI5jJz1JVoB5nNyKKZ33ogTUL1LV1TfcrAioyizW8="
|
|
|
|
# this bucket has a lifecycle to delete after 90 days:
|
|
|
|
# $ echo '{"rule": [{"action": {"type": "Delete"}, "condition": {"age": 90}}]}' > lifecycle.json
|
|
|
|
# $ gsutil lifecycle set lifecycle.json gs://angular2-snapshots
|
|
|
|
bucket: angular2-snapshots
|
|
|
|
# don't delete generated files
|
|
|
|
skip_cleanup: true
|
|
|
|
# serve to public at https://storage.googleapis.com/angular2-snapshots/SHA/dart_stable/dist.tgz
|
|
|
|
acl: public-read
|
|
|
|
# upload the .tgz archive created in scripts/ci/build_and_test.sh
|
|
|
|
local-dir: deploy
|
|
|
|
# create a "subdirectory" for each commit
|
|
|
|
upload-dir: $TRAVIS_COMMIT/dart_stable
|
|
|
|
on:
|
|
|
|
repo: angular/angular
|
|
|
|
condition: "$MODE = dart && $DART_CHANNEL = stable"
|
2015-07-14 19:59:33 -04:00
|
|
|
- provider: gcs
|
|
|
|
access_key_id: GOOGIOQTDBEOPBUAWFZQ
|
|
|
|
secret_access_key:
|
|
|
|
secure: "MEDggllZ5fw4wI9CEUi8WR6jKsKXqdRF/DLxSNC2JpzM5RlVeBm0uqjntYT1Cf1dASvQ2/+vZCUikL/3A48NcoEYRHXGmxu8D6t/SvleQD8Xv434xFOdsa2QqP/HiCtqCLOI5jJz1JVoB5nNyKKZ33ogTUL1LV1TfcrAioyizW8="
|
|
|
|
bucket: angular2-snapshots
|
|
|
|
skip_cleanup: true
|
|
|
|
acl: public-read
|
|
|
|
local-dir: deploy
|
|
|
|
upload-dir: $TRAVIS_COMMIT/js
|
|
|
|
on:
|
|
|
|
repo: angular/angular
|
|
|
|
condition: "$MODE = js"
|