-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis.yml
60 lines (45 loc) · 1.01 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
54
55
56
57
58
59
60
os:
- linux
dist: trusty
sudo: false
env:
global:
- COMMIT_AUTHOR_EMAIL: [email protected]
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- tree
git:
depth: 5
branches:
except:
- gh-pages
language: node_js
node_js:
- "8"
cache:
directories:
- node_modules
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 10
install:
- npm install
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
script:
- npm run test:ci
- npm run build:release
after_script:
- ./cc-test-reporter format-coverage $(pwd)/coverage/lcov.info --debug --input-type lcov --output coverage/lcov.json
- ./cc-test-reporter sum-coverage $(pwd)/coverage/lcov.json --parts 1
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi
after_success:
- chmod -R a+x scripts
- bash ./scripts/git/gh-pages.sh
- bash ./scripts/npm/publish.sh