-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
39 lines (36 loc) · 1.04 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
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: true
install:
- npm install
branches:
except:
- /^v\d+\.\d+\.\d+$/
stages:
- test
- name: npm release
if: branch = master
jobs:
include:
- stage: test
node_js: '8.0.0'
script:
# check syntax of the script
- node --check bin/commit-message-install.js
- node --check bin/commit-message-run.js
- node --check bin/has-commit-message.js
- node --check .
- npm test
- DEBUG=commit-message-install node ./bin/commit-message-install.js
- DEBUG=commit-message-install node ./bin/commit-message-install.js --else "echo --else is working"
# synthetic test case
- DEBUG=commit-message-install node ./bin/commit-message-install.js -f test/message.txt
- npm run demo
# demo test has-commit-message
- ./bin/has-commit-message.js -f test/message.txt
- stage: npm release
node_js: '12' # required for semantic release
script: npm run semantic-release