-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (37 loc) · 960 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
language: node_js
cache:
directories:
- node_modules
- .tmp
notifications:
email: false
before_install:
- git fetch --tags
install: npm install
node_js: 'lts/fermium'
stages:
- name: test
# require the event type to not be a semantic release tag.
if: NOT tag =~ ^v\d+\.\d+\.\d+$
- name: deploy
# require the event type to not be a semantic release tag.
if: branch = master AND fork = false AND type IN (push, api)
jobs:
include:
- stage: test
script:
- npm run lint
- npm run test-ci
- npm run test-suite
- npm install --no-save coveralls
# Report coverage to coveralls.io
- cat ./__coverage__/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rm -fr ./__coverage__
- stage: deploy
script: skip
deploy:
provider: script
skip_cleanup: true
script: npm run semantic-release
on:
branch: master