Skip to content

Commit 9533af4

Browse files
committed
chore(release): Travis got stages for lint test & release
Changed travis yml file with stages
1 parent dcb8f30 commit 9533af4

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.travis.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
language: node_js
22

3-
node_js:
4-
- 8
3+
stages:
4+
- lint
5+
- test
6+
- release
57

6-
install:
7-
- npm install
8-
9-
cache:
10-
directories:
11-
- "node_modules"
8+
notifications:
9+
email: false
1210

1311
jobs:
1412
include:
15-
# Define the release stage that runs semantic-release
13+
- stage: lint
14+
node_js: 10.0.0
15+
script:
16+
- npm run lint
17+
18+
- stage: test
19+
node_js: 10.0.0
20+
script:
21+
- npm run test
22+
1623
- stage: release
17-
node_js: lts/*
18-
# Advanced: optionally overwrite your default `script` step to skip the tests
19-
# script: skip
20-
deploy:
21-
provider: script
22-
skip_cleanup: true
23-
script:
24-
- npm run semantic-release
24+
node_js: 10.0.0
25+
script:
26+
- npm run semantic-release

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"version": "0.0.0-semantically-released",
44
"description": "Restful API query builder",
55
"main": "index.js",
6+
"engines": {
7+
"node": ">8.9.0"
8+
},
69
"scripts": {
710
"commit": "git-cz",
11+
"lint": "eslint **/*.js --ignore-path .gitignore",
12+
"lint:fix": "eslint **/*.js --fix",
813
"test": "mocha index.test.js",
914
"test:watch": "mocha index.test.js -w",
1015
"semantic-release": "semantic-release"

0 commit comments

Comments
 (0)