-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (33 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
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
node_js:
- 8.10.0
- 10.15.0
dist: trusty
addons:
chrome: stable
before_script:
- npm install -g codecov nyc
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build --debug
script:
- yarn lint
- yarn audit
- nyc --reporter=lcov yarn cover
after_script:
- ./cc-test-reporter format-coverage --output "coverage/codeclimate.$N.json" --debug
- ./cc-test-reporter upload-coverage --debug
- ./cc-test-reporter after-build --exit-code --debug $TRAVIS_TEST_RESULT
- istanbul cover ./node_modules/mocha/bin/_mocha --reporter lcovonly -- -R spec
- codecov -f coverage/lcov.info --disable=gcov
notifications:
slack:
rooms:
- ninjaro:clZjvDamAByBYA004CYcYlH6#build
on_success: always
on_failure: always