Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 7b4e688

Browse files
committed
chore(ci-cd): Use travis shared config
1 parent 572eef2 commit 7b4e688

File tree

2 files changed

+5
-35
lines changed

2 files changed

+5
-35
lines changed

.travis.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,2 @@
1-
language: node_js
2-
3-
node_js:
4-
- "10"
5-
6-
cache:
7-
directories:
8-
- ~/.npm
9-
- node_modules
10-
- ~/.sonar/cache
11-
12-
addons:
13-
sonarcloud:
14-
organization: "mocks-server"
15-
branch:
16-
name: "$TRAVIS_CURRENT_BRANCH"
17-
18-
script:
19-
- npm run lint
20-
- npm run test
21-
- npm run coveralls
22-
- npm run build
23-
- 'if [ -n "$SONAR_TOKEN" ]; then sonar-scanner -Dsonar.login=${SONAR_TOKEN}; fi'
24-
25-
deploy:
26-
provider: npm
27-
email: "javier.brea@gmail.com"
28-
api_key: "$NPM_TOKEN"
29-
edge: true
30-
on:
31-
tags: true
32-
skip_cleanup: true
1+
version: ~> 1.0
2+
import: mocks-server/ci-cd:.travis-build-deploy.yml@master

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"lint": "eslint index.js test jest.config.js",
2828
"lint-staged": "lint-staged",
2929
"test": "jest",
30-
"coveralls": "cat ./coverage/lcov.info | coveralls"
30+
"coveralls": "cat ./coverage/lcov.info | coveralls",
31+
"test:ci": "npm run test"
3132
},
3233
"devDependencies": {
3334
"@babel/preset-env": "7.8.2",
@@ -57,7 +58,6 @@
5758
}
5859
},
5960
"engines": {
60-
"node": ">8.0.0",
61-
"npm": ">6.0.0"
61+
"node": "10.x || 12.x || 13.x"
6262
}
6363
}

0 commit comments

Comments
 (0)