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

Commit a479102

Browse files
committed
chore(ci-cd): Use travis shared config
1 parent 8949579 commit a479102

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

.travis.yml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"test:e2e:browser": "cd test-e2e/browser && npm run test:react-app && npm run test:vanilla-app",
3333
"test:e2e:nodejs": "cd test-e2e/nodejs/es6 && npm run test:ci",
3434
"test:e2e": "npm run test:e2e:browser && npm run test:e2e:nodejs",
35-
"test:e2e:ci": "npm run test:e2e:install && npm run test:e2e"
35+
"test:e2e:ci": "npm run test:e2e:install && npm run test:e2e",
36+
"test:ci": "npm run test && npm run test:e2e:ci"
3637
},
3738
"peerDependencies": {
3839
"@data-provider/core": "^1.7.0"

0 commit comments

Comments
 (0)