forked from angular/material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: node_js
sudo: false
node_js:
- '5.6.0'
env:
global:
- LOGS_DIR=/tmp/angular-material1-build/logs
- SAUCE_USERNAME=angular-ci
- SAUCE_ACCESS_KEY=9b988f434ff8-fbca-8aa4-4ae3-35442987
- BROWSER_STACK_USERNAME=angularteam1
- BROWSER_STACK_ACCESS_KEY=BWCd4SynLzdDcv8xtzsB
- secure: X7CNmOMemAJ9Jqrsmv6MXyeh8n8TIL5CKzE9LYsZUbsyKo0l5CyyysJq0y/AbpQS6awsSv2qP/cZ/kand6r6z0wMFbUcxa4HjMZEfRwv3sGtwj1OKJko/GvjcZQzD54FtHy1NU7wR0mYhAlE5IwH7f8bMa/nUiijgD/TOCTtKH8=
matrix:
# TODO(devversion): investigate at parallel sauce instances with the current license
# - BROWSER=SL_CHROME
# - BROWSER=SL_FIREFOX
# - BROWSER=SL_IE11
- MODE=NORMAL
# matrix:
# fast_finish: true
# allow_failures:
# - env: "MODE=RELEASE"
cache:
directories:
- node_modules
- "$HOME/.pub-cache"
branches:
only:
- master
- patch
- feat/panel
install:
- npm install
- npm rebuild node-sass
before_script:
# Necessary to run test on Travis CI that require a graphical interface.
# See https://docs.travis-ci.com/user/gui-and-headless-browsers
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mkdir -p $LOGS_DIR
- git config --global user.email "[email protected]"
- git config --global user.name "ngMaterial Bot"
script:
- gulp ddescribe-iit
- gulp build
- gulp karma --config=config/karma-sauce.conf.js --browsers=$BROWSER --reporters='dots'
after_success:
- 'if [[ $MODE == "NORMAL" ]]; then ./scripts/travis-build-init.sh --sha=$TRAVIS_COMMIT; fi'