Skip to content

Commit b298e4e

Browse files
committed
chore: setup travis
1 parent f5e23c6 commit b298e4e

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- ~/.npm
5+
- "node_modules"
6+
notifications:
7+
email: false
8+
node_js:
9+
- '9'
10+
- '8'
11+
- '6'
12+
after_success:
13+
- npm run travis-deploy-once "npm run semantic-release"
14+
branches:
15+
except:
16+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "MIT",
1616
"repository": {
1717
"type": "git",
18-
"url": "https:git@github.com:bitIO/express-rest-file-server.git"
18+
"url": "https://github.com/bitIO/express-rest-file-server.git"
1919
},
2020
"bugs": {
2121
"url": "https://github.com/bitIO/express-rest-file-server/issues"
@@ -31,7 +31,8 @@
3131
"start": "node index.js",
3232
"start:disk": "node index.js --storageType=disk",
3333
"test": "echo \"Error: no test specified\" && exit 0",
34-
"semantic-release": "semantic-release"
34+
"semantic-release": "semantic-release",
35+
"travis-deploy-once": "travis-deploy-once"
3536
},
3637
"dependencies": {
3738
"body-parser": "^1.18.2",
@@ -45,7 +46,8 @@
4546
"eslint-config-airbnb-base": "^12.1.0",
4647
"eslint-plugin-import": "^2.11.0",
4748
"pkg-ok": "^2.2.0",
48-
"semantic-release": "^15.3.1"
49+
"semantic-release": "^15.3.1",
50+
"travis-deploy-once": "^5.0.0"
4951
},
5052
"eslintConfig": {
5153
"extends": "airbnb-base",

0 commit comments

Comments
 (0)