-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (39 loc) · 886 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
language: node_js
cache:
directories:
- ~/.npm
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^greenkeeper.*$/
stages:
- lint
- test
- name: release
if: branch = master AND type IN (push)
jobs:
include:
- stage: lint
node_js: lts/*
env: linting
script: npm run lint
- stage: test
node_js: 9
script: npm run unit
- node_js: 8
script: npm run unit
- node_js: 6
script: npm run unit
- node_js: 4
script: npm run unit
- stage: release
node_js: lts/*
env: semantic-release
script: npm run semantic-release
- node_js: lts/*
env: coverage
script:
- npm run coverage
- npm run coveralls