File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,7 @@ node_modules
40
40
41
41
# Transpiled code
42
42
/es
43
- /lib
43
+ /lib
44
+
45
+ coverage
46
+ .nyc_output
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ after_success:
24
24
- ' curl -Lo travis_after_all.py https://git.io/travis_after_all'
25
25
- python travis_after_all.py
26
26
- export $(cat .to_export_back) &> /dev/null
27
+ - npm run cover-report
27
28
- npm run semantic-release
28
29
branches :
29
30
only :
Original file line number Diff line number Diff line change 41
41
"chai" : " 3.5.0" ,
42
42
"chai-as-promised" : " 5.3.0" ,
43
43
"chai-spies" : " 0.7.1" ,
44
+ "codecov.io" : " 0.1.6" ,
44
45
"cz-conventional-changelog" : " 1.2.0" ,
45
46
"eslint" : " 3.4.0" ,
46
47
"eslint-config-airbnb" : " 10.0.1" ,
51
52
"flow-bin" : " 0.32.0" ,
52
53
"ghooks" : " 1.3.2" ,
53
54
"mocha" : " 3.0.2" ,
55
+ "nyc" : " 8.1.0" ,
54
56
"rimraf" : " 2.5.4" ,
55
57
"sane" : " 1.4.1" ,
56
58
"semantic-release" : " 4.3.5"
60
62
"build-cjs" : " rimraf lib && babel src --ignore __tests__,__mocks__ -d lib" ,
61
63
"build-es" : " rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es" ,
62
64
"build-flow" : " find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\ /src\\ //\\ /lib\\ //g'`.flow; done" ,
65
+ "cover" : " nyc npm t" ,
66
+ "cover-report" : " cat ./coverage/lcov.info | codecov" ,
63
67
"lint" : " eslint src test *.js" ,
64
68
"prepublish" : " npm run build" ,
65
69
"test" : " babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js" ,
74
78
"commitizen" : {
75
79
"path" : " ./node_modules/cz-conventional-changelog"
76
80
},
77
- "ghooks" : {
78
- "pre-commit" : " npm run test"
79
- }
81
+ },
82
+ "nyc" : {
83
+ "exclude" : [
84
+ " **/__mocks__/**" ,
85
+ " **/__tests__/**" ,
86
+ " resources" ,
87
+ " node_modules"
88
+ ],
89
+ "reporter" : [
90
+ " lcov" ,
91
+ " text"
92
+ ]
80
93
}
81
94
}
You can’t perform that action at this time.
0 commit comments