-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
33 lines (30 loc) · 834 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
language: node_js
after_success:
- npm run test:coverage && npm run test:coverage:upload
- npm run semantic-release
# 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.*$/
# speed up builds: don’t run semantic-release on PRs
stages:
- test
- name: release
if: branch = master AND type IN (push)
jobs:
include:
# run tests in all supported node versions
# upload coverage only once
- node_js: 4
- node_js: 6
- node_js: 8
script:
- npm run test
- npm run test:coverage
- npm run test:coverage:upload
- stage: release
node_js: lts/*
script:
- npm run semantic-release