forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (29 loc) · 982 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
sudo: required
language: node_js
node_js:
- "8"
- "10"
- "12"
before_install:
- wget https://github.com/sharkdp/hyperfine/releases/download/v1.5.0/hyperfine_1.5.0_amd64.deb
- sudo dpkg -i hyperfine_1.5.0_amd64.deb
install:
- npm install
before_script:
- 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
script:
- npm run depcruise
- "npm run test:glob && npm run test:cover"
- "if test `node --version | cut -c 2,3` = 12; then npm run lint && npm run test:integration && npm run test:load:short; fi"
- "if test `node --version | cut -c 2,3` = 10; then npm run test:integration; fi"
- "if test `node --version | cut -c 2,2` = 8; then npm run test:integration; fi"
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
except:
- gh-pages
cache:
directories:
- node_modules