Skip to content

Commit 9cda5d1

Browse files
committed
ci: refactor .travis.yml
1 parent 2d39c65 commit 9cda5d1

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.travis.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1+
sudo: false
12
language: node_js
2-
services:
3-
- mongodb
4-
addons:
5-
apt:
6-
sources:
7-
- mongodb-3.0-precise
8-
packages:
9-
- mongodb-org-server
10-
node_js:
11-
- "8"
12-
- "9"
13-
- "10"
14-
before_script:
15-
- npm install
3+
cache:
4+
yarn: true
5+
directories:
6+
- node_modules
167
notifications:
178
email: true
9+
node_js:
10+
- "10"
11+
- "9"
12+
- "8"
13+
before_install:
14+
- yarn global add greenkeeper-lockfile@1
15+
16+
before_script: greenkeeper-lockfile-update
17+
after_script: greenkeeper-lockfile-upload
18+
script:
19+
- yarn run test
20+
- yarn run build
21+
after_success:
22+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
23+
- python travis_after_all.py
24+
- export $(cat .to_export_back) &> /dev/null
25+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then bash <(curl -s https://codecov.io/bash); fi
26+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run semantic-release; fi
27+
28+

0 commit comments

Comments
 (0)