From 9f3e9786a8db514a437c089d199cb5d0d4002df6 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 7 Dec 2020 11:45:53 +0000 Subject: [PATCH] Disable nyc coverage reporting on older node versions --- .travis.yml | 6 ++++++ Gruntfile.js | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 315eb07a8..4cd0dffe1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,5 +11,11 @@ matrix: before_script: - npm install -g coveralls - node_js: "12" + script: + - ./node_modules/.bin/grunt no-coverage - node_js: "10" + script: + - ./node_modules/.bin/grunt no-coverage - node_js: "8" + script: + - ./node_modules/.bin/grunt no-coverage diff --git a/Gruntfile.js b/Gruntfile.js index 6272e9818..b01763ab0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -623,6 +623,11 @@ module.exports = function(grunt) { 'Builds editor content then runs code style checks and unit tests on all components', ['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', 'Runs code style check and unit tests on core runtime code', ['build','nyc:core']);