-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (49 loc) · 1.29 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
language: node_js
sudo: required
dist: trusty
node_js:
- 'stable'
- '6'
cache:
directories:
- node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
env:
- CXX=g++-4.8
- g++-4.8
- NPM_VERSION=3
- TRAVIS_NODE_VERSION="5"
- TRAVIS_NODE_VERSION="6"
before_install:
- "nvm use $TRAVIS_NODE_VERSION"
install:
# Install version of npm that we are locked against
- npm install -g npm@3
# - npm config set registry http://23.251.144.68
# Disable the spinner, it looks bad on Travis
- npm config set spin false
- sudo apt-get update -qq
# Log HTTP requests
- npm config set loglevel http
# Install npm dependencies and ensure that npm cache is not stale
- npm install
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
notifications:
email: true
script:
- npm test
- npm coverage:report
after_script:
# Upload to coveralls, but don't _fail_ if coveralls is down.
- cat coverage/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed"
- node node_modules/lcov-filter/index.js lcov.info config | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage