-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
27 lines (22 loc) · 985 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
env:
global:
- CC_TEST_REPORTER_ID=e3094b07fee502ddf998b694d792f2660be08f72e9fbe24316b6b2dd0cc5c383
os:
- windows
- linux
- osx
language: node_js
node_js:
- "node"
- "16"
- "14"
- "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