2014-09-29 17:20:23 -04:00
|
|
|
language: node_js
|
2018-01-18 13:58:40 -05:00
|
|
|
sudo: false
|
2017-07-25 14:18:24 -04:00
|
|
|
dist: trusty
|
2014-09-29 17:20:23 -04:00
|
|
|
node_js:
|
2018-09-05 15:38:53 -04:00
|
|
|
- '10.9.0'
|
2017-02-02 19:22:39 -05:00
|
|
|
|
2016-04-28 20:50:03 -04: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 04:49:10 -05:00
|
|
|
# needed to install g++ that is used by npms's native modules
|
2016-04-28 20:50:03 -04:00
|
|
|
- g++-4.8
|
2018-08-21 14:47:26 -04:00
|
|
|
|
2015-07-23 16:51:57 -04:00
|
|
|
branches:
|
|
|
|
except:
|
2017-03-22 20:15:38 -04:00
|
|
|
- g3
|
2015-07-23 16:51:57 -04:00
|
|
|
|
2015-04-16 00:37:13 -04:00
|
|
|
cache:
|
2017-01-25 12:39:01 -05:00
|
|
|
yarn: true
|
2015-04-16 00:37:13 -04:00
|
|
|
directories:
|
2016-04-28 20:50:03 -04:00
|
|
|
- ./node_modules
|
|
|
|
- ./.chrome/chromium
|
2017-02-09 14:58:36 -05:00
|
|
|
- ./aio/node_modules
|
2016-02-08 16:23:12 -05:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
env:
|
2014-10-28 06:51:00 -04:00
|
|
|
global:
|
2017-03-14 12:44:18 -04:00
|
|
|
# GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine>
|
2016-05-12 18:08:28 -04:00
|
|
|
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
|
2017-05-09 19:37:05 -04:00
|
|
|
- secure: "aCdHveZuY8AT4Jr1JoJB4LxZsnGWRe/KseZh1YXYe5UtufFCtTVHvUcLn0j2aLBF0KpdyS+hWf0i4np9jthKu2xPKriefoPgCMpisYeC0MFkwbmv+XlgkUbgkgVZMGiVyX7DCYXVahxIoOUjVMEDCbNiHTIrfEuyq24U3ok2tHc="
|
2015-02-12 18:00:43 -05:00
|
|
|
matrix:
|
2015-10-30 10:34:48 -04:00
|
|
|
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
|
2017-01-27 20:39:48 -05:00
|
|
|
- CI_MODE=e2e
|
2017-01-19 17:25:44 -05:00
|
|
|
- CI_MODE=js
|
|
|
|
- CI_MODE=saucelabs_required
|
2017-10-17 18:38:47 -04:00
|
|
|
# deactivated, see #19768
|
|
|
|
# - CI_MODE=browserstack_required
|
2018-12-13 13:42:39 -05:00
|
|
|
|
|
|
|
# We disable these optional jobs because those acquire tunnel and browser instances which
|
|
|
|
# could lead to rate limit excess while those are failing most of the time and nobody pays
|
|
|
|
# attention anyway.
|
|
|
|
# - CI_MODE=saucelabs_optional
|
|
|
|
# - CI_MODE=browserstack_optional
|
2016-05-09 19:47:26 -04:00
|
|
|
|
|
|
|
matrix:
|
2016-08-12 02:03:28 -04:00
|
|
|
fast_finish: true
|
2016-05-09 19:47:26 -04:00
|
|
|
allow_failures:
|
|
|
|
- env: "CI_MODE=saucelabs_optional"
|
|
|
|
- env: "CI_MODE=browserstack_optional"
|
2015-06-02 17:09:32 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
before_install:
|
2017-03-05 11:12:32 -05:00
|
|
|
# source the env.sh script so that the exported variables are available to other scripts later on
|
2017-03-05 04:49:10 -05:00
|
|
|
- source ./scripts/ci/env.sh print
|
2017-03-02 03:22:24 -05:00
|
|
|
|
2015-04-16 00:32:39 -04:00
|
|
|
install:
|
2017-03-05 04:49:10 -05:00
|
|
|
- ./scripts/ci/install.sh
|
2015-04-16 00:32:39 -04:00
|
|
|
|
2014-09-29 17:20:23 -04:00
|
|
|
script:
|
2017-03-05 04:49:10 -05:00
|
|
|
- ./scripts/ci/build.sh
|
|
|
|
- ./scripts/ci/test.sh
|
|
|
|
- ./scripts/ci/angular.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
# all the scripts under this line will not quickly abort in case ${TRAVIS_TEST_RESULT} is 1 (job failure)
|
2017-03-05 04:49:10 -05:00
|
|
|
- ./scripts/ci/cleanup.sh
|
2017-06-30 05:09:53 -04:00
|
|
|
- ./scripts/ci/print-logs.sh
|