|
1 |
| -sudo: false |
| 1 | +# TODO(hansl): When we're ready to test for Dart, readd every mention of Dart to this file. |
| 2 | +# Base the Dart config on the main repo travis.yml file. |
| 3 | + |
2 | 4 | language: node_js
|
| 5 | +sudo: false |
3 | 6 |
|
4 | 7 | node_js:
|
5 | 8 | - '4.2.3'
|
6 | 9 |
|
7 |
| -addons: |
8 |
| - firefox: "latest" |
| 10 | +cache: |
| 11 | + directories: |
| 12 | + - node_modules |
| 13 | + |
| 14 | +env: |
| 15 | + global: |
| 16 | + - LOGS_DIR=/tmp/angular-material-build/logs |
| 17 | + - SAUCE_USERNAME=angular-ci |
| 18 | + - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 |
| 19 | + - BROWSER_STACK_USERNAME=angularteam1 |
| 20 | + - BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB |
| 21 | + - ARCH=linux-x64 |
| 22 | + # Token for tsd to increase github rate limit |
| 23 | + # See https://github.com/DefinitelyTyped/tsd#tsdrc |
| 24 | + # This does not use http://docs.travis-ci.com/user/environment-variables/#Secure-Variables |
| 25 | + # because those are not visible for pull requests, and those should also be reliable. |
| 26 | + # This SSO token belongs to github account angular-github-ratelimit-token which has no access |
| 27 | + # (password is in Valentine) |
| 28 | + - TSDRC='{"token":"ef474500309daea53d5991b3079159a29520a40b"}' |
| 29 | + # GITHUB_TOKEN_ANGULAR |
| 30 | + - secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo=" |
| 31 | + matrix: |
| 32 | + # Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete. |
| 33 | + - MODE=saucelabs_required |
| 34 | + - MODE=browserstack_required |
| 35 | + - MODE=saucelabs_optional |
| 36 | + - MODE=browserstack_optional |
| 37 | + |
| 38 | +matrix: |
| 39 | + allow_failures: |
| 40 | + - env: "MODE=saucelabs_optional" |
| 41 | + - env: "MODE=browserstack_optional" |
9 | 42 |
|
10 | 43 | install:
|
11 |
| - - npm install -g angular-cli |
12 | 44 | - npm install
|
13 | 45 |
|
14 | 46 | before_script:
|
15 | 47 | # Necessary to run test on Travis CI that require a graphical interface.
|
16 | 48 | # See https://docs.travis-ci.com/user/gui-and-headless-browsers
|
17 | 49 | - "export DISPLAY=:99.0"
|
18 | 50 | - "sh -e /etc/init.d/xvfb start"
|
| 51 | + - mkdir -p $LOGS_DIR |
| 52 | + |
19 | 53 |
|
20 | 54 | script:
|
21 | 55 | - ./scripts/ci/build-and-test.sh ${MODE}
|
|
0 commit comments