-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (27 loc) · 897 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
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
node_js:
- 8.9.4
dist: trusty
addons:
chrome: stable
before_script:
- npm install -g codecov
- yarn global add nyc
- 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:
- nyc --reporter=lcov yarn run 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: ninjaro:clZjvDamAByBYA004CYcYlH6
email: