-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
43 lines (31 loc) · 931 Bytes
/
.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
language: node_js
node_js: stable
sudo: false
install: true # yarn bug
addons:
firefox: latest
chrome: stable
os:
- linux
# - osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated xctool || brew upgrade xctool; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi # Karma CI
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome; fi # Karma CI
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
before_script:
- npm install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
after_failure:
- cat /home/travis/build/vyakymenko/angular-seed-express/npm-debug.log
branches:
only: master
notifications:
email: true
cache:
directories:
- "$HOME/.npm"
script:
# - npm run tests.all
- npm run test