|  | 
| 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 | 
| 9 | 37 | 
 | 
| 10 | 38 | install: | 
| 11 |  | -  - npm install -g angular-cli | 
| 12 | 39 |   - npm install | 
| 13 | 40 | 
 | 
| 14 | 41 | before_script: | 
| 15 | 42 |   # Necessary to run test on Travis CI that require a graphical interface. | 
| 16 | 43 |   # See https://docs.travis-ci.com/user/gui-and-headless-browsers | 
| 17 | 44 |   - "export DISPLAY=:99.0" | 
| 18 | 45 |   - "sh -e /etc/init.d/xvfb start" | 
|  | 46 | +  - mkdir -p $LOGS_DIR | 
|  | 47 | + | 
| 19 | 48 | 
 | 
| 20 | 49 | script: | 
| 21 | 50 | - ./scripts/ci/build-and-test.sh ${MODE} | 
|  | 
0 commit comments