File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ before_install:
67
67
elif node_version_lt '6.0'; then npm_use_module 'mocha' '5.2.0'
68
68
elif node_version_lt '8.0'; then npm_use_module 'mocha' '6.2.2'
69
69
fi
70
+ - |
71
+ # Configure nyc for testing
72
+ if node_version_lt '4.0'; then npm_use_module 'nyc' '10.3.2'
73
+ elif node_version_lt '6.0'; then npm_use_module 'nyc' '11.9.0'
74
+ elif node_version_lt '8.0'; then npm_use_module 'nyc' '14.1.1'
75
+ fi
70
76
- |
71
77
# Configure supertest for http calls
72
78
if node_version_lt '4.0'; then npm_use_module 'supertest' '2.0.0'
@@ -80,9 +86,11 @@ before_install:
80
86
npm rebuild
81
87
fi
82
88
script :
83
- # Run test script
89
+ # Run test script, depending on nyc install
84
90
- |
85
- npm test
91
+ if npm_module_installed 'nyc'; then npm run-script test-travis
92
+ else npm test
93
+ fi
86
94
# Run linting, depending on eslint install
87
95
- |
88
96
if npm_module_installed 'eslint'; then npm run-script lint
Original file line number Diff line number Diff line change 23
23
"eslint-plugin-markdown" : " 1.0.1" ,
24
24
"finalhandler" : " 1.1.2" ,
25
25
"mocha" : " 7.0.0" ,
26
- "nyc" : " 10.3.2 " ,
26
+ "nyc" : " 15.0.0 " ,
27
27
"safe-buffer" : " 5.2.0" ,
28
28
"supertest" : " 4.0.2"
29
29
},
You can’t perform that action at this time.
0 commit comments