-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 872 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
43
language: node_js
node_js:
- "6"
- "8"
- "9"
- "10"
sudo: false
install:
- npm install
script:
- npm run test-with-cov
before_deploy:
- git remote set-url origin https://${GH_TOKEN}@github.com/ReidWeb/GitInspector-CSV
- git fetch
- git checkout master
- git config --global user.name 'Travis CI[bot]'
- git config --global user.email '[email protected]'
- npm run release
deploy:
provider: npm
email: [email protected]
tag: latest
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: false
condition: '$TRAVIS_COMMIT_MESSAGE != *"chore(release)"*'
node: 8
repo: ReidWeb/GitInspector-CSV
branch: master
after_deploy:
- git push --tags origin master
after_success:
- CODECLIMATE_REPO_TOKEN=$CODECLIMATE_TOKEN ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < ./coverage/lcov.info
git:
depth: 10