-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
55 lines (46 loc) · 963 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
47
48
49
50
51
52
53
54
55
language: node_js
cache:
yarn: true
directories:
- ~/.cache
- node_modules
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
notifications:
email: false
sudo: false
jobs:
include:
- stage: lint
node_js: '13'
script: commitlint-travis
- &test
node_js: '13'
stage: test
install: yarn
script: yarn test
- <<: *test
node_js: '12'
- <<: *test
node_js: '11'
- <<: *test
node_js: '10'
- stage: npm release
node_js: '13'
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
script:
- yarn build
- yarn semantic-release
after_script: greenkeeper-lockfile-upload
branches:
except:
- /^v\d+\.\d+\.\d+$/
stages:
- lint
- test
- name: npm release
if: branch = master