2014-09-29 14:20:23 -07:00
|
|
|
language: node_js
|
2018-01-18 20:58:40 +02:00
|
|
|
sudo: false
|
2017-07-25 19:18:24 +01:00
|
|
|
dist: trusty
|
2014-09-29 14:20:23 -07:00
|
|
|
node_js:
|
2017-12-05 11:36:08 -08:00
|
|
|
- '8.9.1'
|
2017-02-02 16:22:39 -08:00
|
|
|
|
2016-04-28 17:50:03 -07:00
|
|
|
addons:
|
|
|
|
# firefox: "38.0"
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# needed to install g++ that is used by npms's native modules
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2017-03-05 01:49:10 -08:00
|
|
|
# needed to install g++ that is used by npms's native modules
|
2016-04-28 17:50:03 -07:00
|
|
|
- g++-4.8
|
2017-03-01 12:09:24 -08:00
|
|
|
# https://docs.travis-ci.com/user/jwt
|
|
|
|
jwt:
|
2017-03-02 22:54:19 +02:00
|
|
|
# SAUCE_ACCESS_KEY<=secret for NGBUILDS_IO_KEY to work around travis-ci/travis-ci#7223, unencrypted value in valentine as NGBUILDS_IO_KEY>
|
|
|
|
# we alias NGBUILDS_IO_KEY to $SAUCE_ACCESS_KEY in env.sh and set the SAUCE_ACCESS_KEY there
|
|
|
|
- secure: "L7nrZwkAtFtYrP2DykPXgZvEKjkv0J/TwQ/r2QGxFTaBq4VZn+2Dw0YS7uCxoMqYzDwH0aAOqxoutibVpk8Z/16nE3tNmU5RzltMd6Xmt3qU2f/JDQLMo6PSlBodnjOUsDHJgmtrcbjhqrx/znA237BkNUu6UZRT7mxhXIZpn0U="
|
2015-07-23 13:51:57 -07:00
|
|
|
branches:
|
|
|
|
except:
|
2017-03-22 17:15:38 -07:00
|
|
|
- g3
|
2015-07-23 13:51:57 -07:00
|
|
|
|
2015-04-15 21:37:13 -07:00
|
|
|
cache:
|
2017-01-25 19:39:01 +02:00
|
|
|
yarn: true
|
2015-04-15 21:37:13 -07:00
|
|
|
directories:
|
2016-04-28 17:50:03 -07:00
|
|
|
- ./node_modules
|
|
|
|
- ./.chrome/chromium
|
2017-02-09 19:58:36 +00:00
|
|
|
- ./aio/node_modules
|
2016-02-08 13:23:12 -08:00
|
|
|
|
2014-09-29 14:20:23 -07:00
|
|
|
env:
|
2014-10-28 11:51:00 +01:00
|
|
|
global:
|
2017-03-14 09:44:18 -07:00
|
|
|
# GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine>
|
2016-05-12 15:08:28 -07:00
|
|
|
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
|
2017-05-09 16:37:05 -07:00
|
|
|
- secure: "aCdHveZuY8AT4Jr1JoJB4LxZsnGWRe/KseZh1YXYe5UtufFCtTVHvUcLn0j2aLBF0KpdyS+hWf0i4np9jthKu2xPKriefoPgCMpisYeC0MFkwbmv+XlgkUbgkgVZMGiVyX7DCYXVahxIoOUjVMEDCbNiHTIrfEuyq24U3ok2tHc="
|
2017-01-25 19:39:01 +02:00
|
|
|
# FIREBASE_TOKEN
|
2017-05-26 00:32:19 -07:00
|
|
|
# This is needed for publishing builds to the "aio-staging" and "angular-io" firebase projects.
|
|
|
|
# This token was generated using the aio-deploy@angular.io account using `firebase login:ci` and password from valentine
|
|
|
|
- secure: "L5CyQmpwWtoR4Qi4xlWQh/cL1M6ZeJL4W4QAr4HdKFMgYt9h+Whqkymyh2NxwmCbPvWa7yUd+OiLQUDCY7L2VIg16hTwoe2CgYDyQA0BEwLzxtRrJXl93TfwMlrUx5JSIzAccD6D4sjtz8kSFMomK2Nls33xOXOukwyhVMjd0Cg="
|
2017-05-23 17:20:56 -07:00
|
|
|
# ANGULAR_PAYLOAD_FIREBASE_TOKEN
|
2017-06-22 16:47:53 -07:00
|
|
|
# This is for payload size data to "angular-payload-size" firebase project
|
|
|
|
# This token was generated using the payload@angular.io account using `firebase login:ci` and password from valentine
|
|
|
|
- secure: "SxotP/ymNy6uWAVbfwM9BlwETPEBpkRvU/F7fCtQDDic99WfQHzzUSQqHTk8eKk3GrGAOSL09vT0WfStQYEIGEoS5UHWNgOnelxhw+d5EnaoB8vQ0dKQBTK092hQg4feFprr+B/tCasyMV6mVwpUzZMbIJNn/Rx7H5g1bp+Gkfg="
|
2015-02-12 15:00:43 -08:00
|
|
|
matrix:
|
2015-10-30 07:34:48 -07:00
|
|
|
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
|
2017-01-27 17:39:48 -08:00
|
|
|
- CI_MODE=e2e
|
2017-01-19 14:25:44 -08:00
|
|
|
- CI_MODE=js
|
|
|
|
- CI_MODE=saucelabs_required
|
2017-10-17 15:38:47 -07:00
|
|
|
# deactivated, see #19768
|
|
|
|
# - CI_MODE=browserstack_required
|
2017-01-19 14:25:44 -08:00
|
|
|
- CI_MODE=saucelabs_optional
|
|
|
|
- CI_MODE=browserstack_optional
|
2017-07-28 11:57:44 +01:00
|
|
|
- CI_MODE=aio_tools_test
|
2017-01-25 19:39:01 +02:00
|
|
|
- CI_MODE=aio
|
2017-07-27 08:27:11 +01:00
|
|
|
- CI_MODE=aio_e2e AIO_SHARD=0
|
|
|
|
- CI_MODE=aio_e2e AIO_SHARD=1
|
2016-05-09 16:47:26 -07:00
|
|
|
|
|
|
|
matrix:
|
2016-08-12 08:03:28 +02:00
|
|
|
fast_finish: true
|
2016-05-09 16:47:26 -07:00
|
|
|
allow_failures:
|
|
|
|
- env: "CI_MODE=saucelabs_optional"
|
|
|
|
- env: "CI_MODE=browserstack_optional"
|
2015-06-02 14:09:32 -07:00
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
before_install:
|
2017-03-05 08:12:32 -08:00
|
|
|
# source the env.sh script so that the exported variables are available to other scripts later on
|
2017-03-05 01:49:10 -08:00
|
|
|
- source ./scripts/ci/env.sh print
|
2017-03-02 00:22:24 -08:00
|
|
|
|
2015-04-15 21:32:39 -07:00
|
|
|
install:
|
2017-03-05 01:49:10 -08:00
|
|
|
- ./scripts/ci/install.sh
|
2015-04-15 21:32:39 -07:00
|
|
|
|
2014-09-29 14:20:23 -07:00
|
|
|
script:
|
2017-03-05 01:49:10 -08:00
|
|
|
- ./scripts/ci/build.sh
|
|
|
|
- ./scripts/ci/test.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
# deploy is part of 'script' and not 'after_success' so that we fail the build if the deployment fails
|
2017-03-05 01:49:10 -08:00
|
|
|
- ./scripts/ci/deploy.sh
|
|
|
|
- ./scripts/ci/angular.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
# all the scripts under this line will not quickly abort in case ${TRAVIS_TEST_RESULT} is 1 (job failure)
|
2017-03-05 01:49:10 -08:00
|
|
|
- ./scripts/ci/cleanup.sh
|
2017-06-30 12:09:53 +03:00
|
|
|
- ./scripts/ci/print-logs.sh
|