Skip to content

Commit e0bbb53

Browse files
wesleytodddougwilson
authored andcommitted
build: nyc@15.0.0
1 parent a2ba4ca commit e0bbb53

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ before_install:
6767
elif node_version_lt '6.0'; then npm_use_module 'mocha' '5.2.0'
6868
elif node_version_lt '8.0'; then npm_use_module 'mocha' '6.2.2'
6969
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
7076
- |
7177
# Configure supertest for http calls
7278
if node_version_lt '4.0'; then npm_use_module 'supertest' '2.0.0'
@@ -80,9 +86,11 @@ before_install:
8086
npm rebuild
8187
fi
8288
script:
83-
# Run test script
89+
# Run test script, depending on nyc install
8490
- |
85-
npm test
91+
if npm_module_installed 'nyc'; then npm run-script test-travis
92+
else npm test
93+
fi
8694
# Run linting, depending on eslint install
8795
- |
8896
if npm_module_installed 'eslint'; then npm run-script lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"eslint-plugin-markdown": "1.0.1",
2424
"finalhandler": "1.1.2",
2525
"mocha": "7.0.0",
26-
"nyc": "10.3.2",
26+
"nyc": "15.0.0",
2727
"safe-buffer": "5.2.0",
2828
"supertest": "4.0.2"
2929
},

0 commit comments

Comments
 (0)