forked from Tradeshift/io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 797 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
dist: trusty
sudo: false
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
before_install:
- |
if [[ $TRAVIS_BRANCH == *"greenkeeper"* ]]; then
travis_retry npm i -g greenkeeper-lockfile;
else
travis_retry npm i -g npm@latest;
fi
install:
- |
if [[ $TRAVIS_BRANCH == *"greenkeeper"* ]]; then
travis_retry npm install;
else
travis_retry npm ci;
fi
script:
- travis_retry npm test
before_script:
- |
if [[ $TRAVIS_BRANCH == *"greenkeeper"* ]]; then
greenkeeper-lockfile-update;
fi
after_script:
- |
if [[ $TRAVIS_BRANCH == *"greenkeeper"* ]]; then
greenkeeper-lockfile-upload;
fi
after_success:
- npm run semantic-release;
branches:
only:
- master
- /^greenkeeper.*$/