1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Disable nyc coverage reporting on older node versions

This commit is contained in:
Nick O'Leary 2020-12-07 11:45:53 +00:00
parent 78f1cb8a66
commit 9f3e9786a8
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 11 additions and 0 deletions

View File

@ -11,5 +11,11 @@ matrix:
before_script: before_script:
- npm install -g coveralls - npm install -g coveralls
- node_js: "12" - node_js: "12"
script:
- ./node_modules/.bin/grunt no-coverage
- node_js: "10" - node_js: "10"
script:
- ./node_modules/.bin/grunt no-coverage
- node_js: "8" - node_js: "8"
script:
- ./node_modules/.bin/grunt no-coverage

View File

@ -623,6 +623,11 @@ module.exports = function(grunt) {
'Builds editor content then runs code style checks and unit tests on all components', 'Builds editor content then runs code style checks and unit tests on all components',
['build','verifyPackageDependencies','jshint:editor','nyc:all']); ['build','verifyPackageDependencies','jshint:editor','nyc:all']);
grunt.registerTask('no-coverage',
'Builds editor content then runs code style checks and unit tests on all components without code coverage',
['build','verifyPackageDependencies','jshint:editor','simplemocha:all']);
grunt.registerTask('test-core', grunt.registerTask('test-core',
'Runs code style check and unit tests on core runtime code', 'Runs code style check and unit tests on core runtime code',
['build','nyc:core']); ['build','nyc:core']);