-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
39 lines (32 loc) · 851 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
language: node_js
node_js:
- "4"
notifications:
email: false
# ensure we're using the container-based infrastructure
# see https://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
sudo: false
install:
- npm install -g npm@^3
- npm install
# enable firefox
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
# --silent surpresses that big ol' NPM script error
- npm run-script lint --silent
- npm run-script test --silent
cache:
directories:
- node_modules
# enable native dependencies for node 4.x
# see https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8