-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
44 lines (38 loc) · 855 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
31
32
33
34
35
36
37
38
39
40
41
42
43
# define the language of this project
language: node_js
# define node.js versions to run on
node_js:
- "stable"
- "14"
- "13"
- "12"
- "11"
- "10"
- "9"
- "8"
- "7"
- "6"
- "5"
- "4"
- "iojs"
- "0.12"
- "0.11"
- "0.10"
# run before everey other script
before_script:
- npm install
# New way to prepare codeclimate
- 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
# run some scripts
script:
# run tests
- npm test
- npm run-script test-travis
# trigger some additional tools after success
after_script:
# send coverage data to coveralls
- npm run-script coveralls
# send coverage data to codeclimate
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT