-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 858 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
language: node_js
cache:
directories:
- ~/.npm
- .nyc_output
node_js:
- "10"
notifications:
email: false
stages:
- lint
- test
- coverage
- name: deploy
if: branch = master
jobs:
include:
- stage: lint
name: eslint
script: npx eslint .
- stage: lint
name: commitlint
before_script:
- npm i -g @commitlint/travis-cli
script: commitlint-travis
- stage: test
node_js:
- "10"
- "8"
script: npm t
- stage: coverage
before_script:
- npm i -g coveralls codeclimate-test-reporter
script:
- npx nyc check-coverage --lines 96 --per-file
after_success:
- npx nyc report > lcov.info
- coveralls < lcov.info
- codeclimate-test-reporter < lcov.info
- stage: deploy
script: npx semantic-release