File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ node_modules
29
29
30
30
.idea /
31
31
* .iml
32
+ coverage /
Original file line number Diff line number Diff line change 5
5
database :
6
6
override :
7
7
- mysql -u ubuntu circle_test < test/setup.sql
8
+ test :
9
+ override :
10
+ - npm run ci
Original file line number Diff line number Diff line change 28
28
"devDependencies" : {
29
29
"babel-core" : " 5.8.25" ,
30
30
"babel-eslint" : " 4.1.3" ,
31
- "babel-loader" : " 5.3.2" ,
32
- "bluebird" : " 2.10.2" ,
33
- "chai" : " 3.3.0" ,
34
- "co" : " ^ 4.6.0" ,
31
+ "babel-loader" : " ^ 5.3.2" ,
32
+ "bluebird" : " ^ 2.10.2" ,
33
+ "chai" : " ^ 3.3.0" ,
34
+ "co" : " 4.6.0" ,
35
35
"co-mocha" : " 1.1.2" ,
36
- "mocha" : " 2.3.3" ,
36
+ "istanbul" : " ^0.4.0" ,
37
+ "mocha" : " ^2.3.3" ,
37
38
"standard" : " 5.3.1" ,
38
39
"webpack" : " 1.12.2"
39
40
},
40
41
"scripts" : {
41
- "lint" : " node_modules/standard/bin/cmd.js src/index.js" ,
42
- "build" : " node_modules/webpack/bin/webpack.js --config webpack.config.js --progress --colors" ,
43
- "mocha" : " mocha --timeout 20000 --reporter spec mocha.start.js test/*.spec.js" ,
44
- "test" : " npm run lint && npm run build && npm run mocha"
42
+ "lint" : " standard src/index.js" ,
43
+ "build" : " webpack --config webpack.config.js --progress --colors" ,
44
+ "mocha" : " mocha --timeout 20000 --reporter dot mocha.start.js test/*.spec.js" ,
45
+ "cover" : " istanbul cover --hook-run-in-context node_modules/mocha/bin/_mocha -- --timeout 20000 --reporter dot mocha.start.js test/*.spec.js" ,
46
+ "test" : " npm run lint && npm run build && npm run cover" ,
47
+ "ci" : " npm run test && cat coverage/lcov.info | coveralls || true"
45
48
},
46
49
"standard" : {
47
50
"parser" : " babel-eslint"
You can’t perform that action at this time.
0 commit comments