-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
28 lines (22 loc) · 991 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
env:
global:
- CC_TEST_REPORTER_ID=546a512515094a1117bf1b4558feb4427e514f3dbbe00f73387d0d944d1802d3
os:
- windows
- linux
- osx
language: node_js
node_js:
- "node"
- "lts/*"
- "13"
- "12"
- "10"
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" || "$TRAVIS_OS_NAME" = "linux" ]; then chmod +x ./cc-test-reporter ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" || "$TRAVIS_OS_NAME" = "linux" ]; then ./cc-test-reporter before-build ; fi
# Pipe the coverage data to Code Climate
after_script:
- if [ "$TRAVIS_OS_NAME" = "osx" || "$TRAVIS_OS_NAME" = "linux" ]; then ./cc-test-reporter after-build -t lcov --exit-code $TRAVIS_TEST_RESULT ; fi