Skip to content

Commit 3487244

Browse files
committed
chore: split stages
1 parent 72fd831 commit 3487244

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.travis.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,36 @@ cache:
44
- ~/.npm
55
notifications:
66
email: true
7-
node_js:
8-
- '8.0.0'
97
install:
108
- npm install
11-
script:
12-
# check syntax of the script
13-
- node --check bin/commit-message-install.js
14-
- node --check bin/commit-message-run.js
15-
- node --check bin/has-commit-message.js
16-
- node --check .
17-
- npm test
18-
- DEBUG=commit-message-install node ./bin/commit-message-install.js
19-
- DEBUG=commit-message-install node ./bin/commit-message-install.js --else "echo --else is working"
20-
# synthetic test case
21-
- DEBUG=commit-message-install node ./bin/commit-message-install.js -f test/message.txt
22-
- npm run demo
23-
# demo test has-commit-message
24-
- ./bin/has-commit-message.js -f test/message.txt
25-
269
branches:
2710
except:
2811
- /^v\d+\.\d+\.\d+$/
2912

13+
stages:
14+
- test
15+
- name: npm release
16+
if: branch = master
17+
3018
jobs:
3119
include:
20+
- stage: test
21+
node_js: '8.0.0'
22+
script:
23+
# check syntax of the script
24+
- node --check bin/commit-message-install.js
25+
- node --check bin/commit-message-run.js
26+
- node --check bin/has-commit-message.js
27+
- node --check .
28+
- npm test
29+
- DEBUG=commit-message-install node ./bin/commit-message-install.js
30+
- DEBUG=commit-message-install node ./bin/commit-message-install.js --else "echo --else is working"
31+
# synthetic test case
32+
- DEBUG=commit-message-install node ./bin/commit-message-install.js -f test/message.txt
33+
- npm run demo
34+
# demo test has-commit-message
35+
- ./bin/has-commit-message.js -f test/message.txt
36+
3237
- stage: npm release
33-
if: branch = master
3438
node_js: '12' # required for semantic release
3539
script: npm run semantic-release

0 commit comments

Comments
 (0)