-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (48 loc) · 1.01 KB
/
.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
43
44
45
46
47
48
49
language: node_js
os:
- linux
- osx
node_js:
- lts/*
- node
before_install:
- |-
if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ];
then
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc;
else
echo "//registry.npmjs.org/:_authToken=\${NPM_INSTALL_TOKEN}" > ~/.npmrc;
fi
- 'git config --global url."[email protected]:".insteadOf "https://github.com/"'
install:
- npm install -g codecov
- npm install
- npm run build
script:
- npm run lint
- npm test
- >-
npm run coverage && cat ./coverage/lcov.info |
./node_modules/coveralls/bin/coveralls.js
- codecov
cache:
directories:
- ~/.npm
notifications:
email: false
branches:
except:
- /^vd+.d+.d+$/
jobs:
allow_failures:
- node_js: node
include:
- stage: release
if: branch = master
language: node_js
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script: npm run semantic-release