-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (40 loc) · 863 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
language: node_js
node_js:
- "8"
cache: yarn
branches:
only:
- master
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
test: &test
script:
- yarn add "chai@${CHAI_VERSION}"
- yarn test
jobs:
include:
- stage: Test
<<: *test
env: CHAI_VERSION=^4.0.0
- <<: *test
env: CHAI_VERSION=^3.0.0
- <<: *test
env: CHAI_VERSION=^2.0.0
- <<: *test
env: CHAI_VERSION=^1.0.0
- stage: Test Coverage
script:
- yarn coverage
- stage: Upload Coverage Report
script:
- yarn codecov
- stage: Publish to NPM
before_script: yarn build
deploy:
provider: npm
email: calvinlauco@gmail.com
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true
tag: latest
condition: "${TRAVIS_TAG} =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+$"