-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
46 lines (46 loc) · 1.28 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
sudo: required
language: node_js
after_success: npm run coverage && cat ./coverage/lcov.info | coveralls
node_js:
- "0.12"
- "4.0"
- "4.3"
- "4"
- "5.0"
- "5"
env:
- NPM_VERSION=3
- NPM_VERSION=2
script:
- export COVERALLS_SERVICE_NAME=travis-ci
- export COVERALLS_REPO_TOKEN=mqVTe91nICY38tHlFFtmZIjbzpghGZyos
- cd core
- npm install .
- npm test
- npm run coverage
- cd ..
- cd cli
- npm install . -g
- npm test
- npm run coverage
- ./runTests.sh
before_install:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
- npm install -g npm@$NPM_VERSION
before_script:
- npm install -g jshint
- npm install -g istanbul
- npm install -g istanbul-coveralls
- npm install -g nodeunit
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/f3499197be7208e15199
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false