|
1 | 1 | language: node_js
|
2 | 2 | sudo: false
|
3 | 3 | node_js:
|
4 |
| - - '4.2.3' |
5 |
| - |
| 4 | +- 4.2.3 |
6 | 5 | env:
|
7 | 6 | global:
|
8 |
| - - LOGS_DIR=/tmp/angular-material1-build/logs |
9 |
| - - SAUCE_USERNAME=angular-ci |
10 |
| - - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 |
11 |
| - - BROWSER_STACK_USERNAME=angularteam1 |
12 |
| - - BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB |
13 |
| - - secure: TWmpBzRG68b9e5wbJ7I6ox8TrZTnU/XpOkBvggJyuMgvUz27accp92Y9U7DWUPiXYXcWnoc7pqVAvEbwd1/ykHKCqezmyEXsrzZo6POg2lNFXkI9vSuDukL8A4Ct9zANVmr+5Y+kEBtQ/viyO5Rxc5H9bZskSeMaegqR60ZT2E8= |
14 |
| - |
| 7 | + - LOGS_DIR=/tmp/angular-material1-build/logs |
| 8 | + - SAUCE_USERNAME=angular-ci |
| 9 | + - SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987 |
| 10 | + - BROWSER_STACK_USERNAME=angularteam1 |
| 11 | + - BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB |
| 12 | + - secure: X7CNmOMemAJ9Jqrsmv6MXyeh8n8TIL5CKzE9LYsZUbsyKo0l5CyyysJq0y/AbpQS6awsSv2qP/cZ/kand6r6z0wMFbUcxa4HjMZEfRwv3sGtwj1OKJko/GvjcZQzD54FtHy1NU7wR0mYhAlE5IwH7f8bMa/nUiijgD/TOCTtKH8= |
15 | 13 | cache:
|
16 | 14 | directories:
|
17 |
| - - node_modules |
18 |
| - - $HOME/.pub-cache |
19 |
| - |
| 15 | + - node_modules |
| 16 | + - "$HOME/.pub-cache" |
20 | 17 | branches:
|
21 | 18 | only:
|
22 |
| - - master |
23 |
| - |
| 19 | + - master |
24 | 20 | before_install:
|
25 |
| - # configure phantomjs2 |
26 |
| - - mkdir travis-phantomjs |
27 |
| - - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 |
28 |
| - - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs |
29 |
| - - export PHANTOMJS_BIN=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs |
30 |
| - |
| 21 | +- mkdir travis-phantomjs |
| 22 | +- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 |
| 23 | + -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 |
| 24 | +- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs |
| 25 | +- export PHANTOMJS_BIN=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs |
31 | 26 | install:
|
32 |
| - - npm install |
33 |
| - |
| 27 | +- npm install |
34 | 28 | before_script:
|
35 |
| - # Necessary to run test on Travis CI that require a graphical interface. |
36 |
| - # See https://docs.travis-ci.com/user/gui-and-headless-browsers |
37 |
| - - "export DISPLAY=:99.0" |
38 |
| - - "sh -e /etc/init.d/xvfb start" |
39 |
| - - mkdir -p $LOGS_DIR |
40 |
| - - git config --global user.email "ngmaterial@googlegroups.com" |
41 |
| - - git config --global user.name "ngMaterial Bot" |
42 |
| - |
| 29 | +# Necessary to run test on Travis CI that require a graphical interface. |
| 30 | +# See https://docs.travis-ci.com/user/gui-and-headless-browsers |
| 31 | +- export DISPLAY=:99.0 |
| 32 | +- sh -e /etc/init.d/xvfb start |
| 33 | +- mkdir -p $LOGS_DIR |
| 34 | +- git config --global user.email "ngmaterial@googlegroups.com" |
| 35 | +- git config --global user.name "ngMaterial Bot" |
43 | 36 | script:
|
44 |
| - # Fail builds which use iit/ddescribe, but run the tests anyways |
45 |
| - - gulp ddescribe-iit |
46 |
| - - gulp karma --reporters='dots' |
47 |
| - |
| 37 | +- gulp ddescribe-iit |
| 38 | +- gulp karma --reporters='dots' |
48 | 39 | after_success:
|
49 |
| - - ./scripts/travis-build-init.sh --sha=$TRAVIS_COMMIT |
50 |
| - |
51 |
| - |
| 40 | +- "./scripts/travis-build-init.sh --sha=$TRAVIS_COMMIT" |
0 commit comments