-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
46 lines (37 loc) · 938 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
44
45
46
# these are executed in order. each must pass for the next to be run
stages:
- lint # lint code and docs
- test # all tests
- coverage # Coverage report
- build # build the library
- deploy # deploy
language: node_js
node_js: "14"
install: npm ci
cache:
directories:
- ~/.npm
- dist-docs
- dist
jobs:
include:
- stage: lint
script: npm run lint
- &test
stage: test
script: npm run test:prod
- stage: coverage
script: npm run report-coverage
- stage: build
script: npm run build
- stage: deploy docs
script:
- if [ "$TRAVIS_BRANCH" = "release" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run deploy-docs; fi
- stage: release
script:
- if [ "$TRAVIS_BRANCH" = "release" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run semantic-release; fi
branches:
except:
- /^v\d+\.\d+\.\d+$/
notifications:
email: false