-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 806 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
language: node_js
sudo: false
node_js:
- 10
- 9
- 8
- 7
- 6
matrix:
include:
- node_js: "4.0"
env: BROWSER=true
# branches:
# only:
# - master
cache:
directories:
- node_modules
before_install:
# - npm install -g [email protected]
- npm install -g eslint
before_script:
- npm install karma-sauce-launcher
- export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
install:
- npm install
- npm install -g codecov
script:
- npm run test
- "[ $BROWSER == false ] || npm run test-karma"
- "[ $BROWSER == false ] || karma start karma.conf-sauce.js"
- codecov -t 31102f8c-91a5-4809-a163-1fbb702e7204
env:
global:
- CODECOV_TOKEN: 31102f8c-91a5-4809-a163-1fbb702e7204
# matrix: BROWSER=false
after_success:
- npm run coveralls
- bash <(curl -s https://codecov.io/bash)