This repository was archived by the owner on Mar 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-35
lines changed Expand file tree Collapse file tree 2 files changed +5
-35
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 27
27
"lint" : " eslint index.js test jest.config.js" ,
28
28
"lint-staged" : " lint-staged" ,
29
29
"test" : " jest" ,
30
- "coveralls" : " cat ./coverage/lcov.info | coveralls"
30
+ "coveralls" : " cat ./coverage/lcov.info | coveralls" ,
31
+ "test:ci" : " npm run test"
31
32
},
32
33
"devDependencies" : {
33
34
"@babel/preset-env" : " 7.8.2" ,
57
58
}
58
59
},
59
60
"engines" : {
60
- "node" : " >8.0.0" ,
61
- "npm" : " >6.0.0"
61
+ "node" : " 10.x || 12.x || 13.x"
62
62
}
63
63
}
You can’t perform that action at this time.
0 commit comments