File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,3 @@ typings/
62
62
63
63
64
64
# End of https://www.gitignore.io/api/node
65
-
66
- .npmrc
67
- dist
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ dist: trusty
3
3
node_js :
4
4
- " stable"
5
5
6
+ install :
7
+ - npm install --ignore-scripts
8
+
6
9
script :
10
+ - nyc npm run install
7
11
- " source ~/.bash_profile || source ~/.bashrc || source ~/.zshrc"
8
12
- npm test
13
+
14
+ after_script :
15
+ - npm run report-coverage
Original file line number Diff line number Diff line change @@ -12,8 +12,13 @@ install:
12
12
# install Node.js
13
13
- ps : Install-Product node $env:nodejs_version
14
14
# install modules
15
- - npm install
15
+ - npm install --ignore-scripts
16
16
17
17
# to run your custom scripts instead of automatic tests
18
18
test_script :
19
+ - node_modules/.bin/nyc npm run install
19
20
- npm test
21
+
22
+ # to run your custom scripts instead of provider deployments
23
+ after_test :
24
+ - npm run report-coverage
Original file line number Diff line number Diff line change 11
11
},
12
12
"description" : " Mirrors in China about node.js" ,
13
13
"devDependencies" : {
14
+ "codecov" : " ^3.0.0" ,
14
15
"eslint" : " ^4.13.1" ,
15
16
"eslint-config-standard" : " ^11.0.0-beta.0" ,
16
17
"eslint-plugin-import" : " ^2.8.0" ,
17
18
"eslint-plugin-node" : " ^5.2.1" ,
18
19
"eslint-plugin-promise" : " ^3.6.0" ,
19
20
"eslint-plugin-standard" : " ^3.0.1" ,
20
- "mocha" : " ^4.0.1"
21
+ "mocha" : " ^4.0.1" ,
22
+ "nyc" : " ^11.4.1"
21
23
},
22
24
"homepage" : " https://github.com/gucong3000/mirror-config-china#readme" ,
23
25
"keywords" : [
29
31
"license" : " MIT" ,
30
32
"main" : " ./index.js" ,
31
33
"name" : " mirror-config-china" ,
34
+ "nyc" : {
35
+ "reporter" : [
36
+ " lcov" ,
37
+ " text-summary"
38
+ ],
39
+ "cache" : true
40
+ },
32
41
"repository" : {
33
42
"type" : " git" ,
34
43
"url" : " git+https://github.com/gucong3000/mirror-config-china.git"
37
46
"preinstall" : " node -e \" require('util').promisify.call\" || npm i util.promisify" ,
38
47
"install" : " node lib/install" ,
39
48
"pretest" : " eslint lib test *.js" ,
49
+ "report-coverage" : " codecov" ,
40
50
"test" : " mocha"
41
51
},
42
52
"version" : " 2.2.0"
You can’t perform that action at this time.
0 commit comments