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

Commit c1a0836

Browse files
committed
chore(ci-cd): Use travis shared config
1 parent 3f6a337 commit c1a0836

3 files changed

Lines changed: 4 additions & 33 deletions

File tree

.travis.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +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:ci
21-
- npm run coveralls
22-
- 'if [ -n "$SONAR_TOKEN" ]; then sonar-scanner -Dsonar.login=${SONAR_TOKEN}; fi'
23-
24-
deploy:
25-
provider: npm
26-
email: "javier.brea@gmail.com"
27-
api_key: "$NPM_TOKEN"
28-
on:
29-
tags: true
30-
skip_cleanup: true
1+
version: ~> 1.0
2+
import: mocks-server/ci-cd:.travis-deploy.yml@master

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
}
7171
},
7272
"engines": {
73-
"node": ">8.0.0",
74-
"npm": ">6.0.0"
73+
"node": "10.x || 12.x || 13.x"
7574
}
7675
}

0 commit comments

Comments
 (0)