-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 861 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
language: node_js
cache:
directories:
- node_modules
- .tmp
notifications:
email: false
before_install:
- git fetch --tags
stages:
- name: test
# require the event type to not be a semantic release tag.
if: NOT tag =~ ^v\d+\.\d+\.\d+$
jobs:
include:
-
stage: test
node_js: 'lts/carbon'
script:
- yarn lint
- yarn test
- yarn add --no-lockfile coveralls
# Report coverage to coveralls.io
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rm -rf ./coverage
-
stage: test
node_js: 'lts/carbon'
script:
- yarn lint
- yarn test
-
stage: deploy
if: branch = master
# Semantic release will fail if it's not using node 8.
node_js: 'lts/carbon'
script: yarn semantic-release