-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 962 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
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
branches:
except:
- /^v\d+\.\d+\.\d+$/
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
stages:
- name: test
# require the event type to not be a semantic release tag.
if: NOT tag =~ ^\d+\.\d+\.\d+$
- name: release
# require the branch name to be one of the environment branches.
if: branch = master AND fork = false AND type IN (push, api)
- name: deploy
if: tag =~ ^\d+\.\d+\.\d+$
jobs:
include:
- stage: test
node_js: 'lts/carbon'
script:
- yarn run lint
- yarn test
- yarn run coveralls
- stage: release
node_js: 'lts/carbon'
script:
- yarn semantic-release-github
- stage: deploy
node_js: 'lts/carbon'
script: npm run npmpublish