-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 652 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
language: node_js
sudo: false
env:
global:
- TEST_COMMAND="yarn test"
- COVERAGE=false
- DEPLOY=false
matrix:
fast_finish: true
include:
- node_js: 7
env: TEST_COMMAND="yarn test:cov" COVERAGE=true DEPLOY=true
- node_js: 6
- node_js: "stable"
deploy:
provider: npm
email: $EMAIL
api_key: $NPM_TOKEN
script: yarn publish --strict-semver --tag $TRAVIS_TAG
on:
tags: true
skip_cleanup: true
condition: $DEPLOY = true
cache:
yarn: true
directories:
- node_modules
script:
- $TEST_COMMAND
after_success:
- if [[ "$COVERAGE" = true ]]; then yarn add coveralls@2 && yarn coverage:upload; fi