]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Add coveralls testing to travis build (#3848)
authorKunal Marwaha <marwahaha@berkeley.edu>
Mon, 9 Apr 2018 09:39:31 +0000 (01:39 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Apr 2018 09:39:31 +0000 (01:39 -0800)
* Add coveralls testing to travis build

* Increase maxBlockDuration so coveralls can run

Gruntfile.js
tasks/qtest.js

index 9f2f12eeb44d80278222b118abcdda9b4329b2d1..0225972a30faca842f079d75786646ebd44e2784 100644 (file)
@@ -171,6 +171,9 @@ module.exports = function (grunt) {
             },
             'typescript-test': {
                 command: 'npm run typescript-test'
+            },
+            'coveralls': {
+                command: 'npm run coveralls'
             }
         }
 
@@ -199,7 +202,7 @@ module.exports = function (grunt) {
     grunt.registerTask('test:meteor', ['exec:meteor-init', 'exec:meteor-test', 'exec:meteor-cleanup']);
 
     // travis build task
-    grunt.registerTask('build:travis', ['default']);
+    grunt.registerTask('build:travis', ['default', 'exec:coveralls']);
     grunt.registerTask('meteor-publish', ['exec:meteor-init', 'exec:meteor-publish', 'exec:meteor-cleanup']);
 
     // Task to be run when releasing a new version
index bb54a46ec255aa68d8ef1b5bb2c0823b6266d33b..45026516d30fceea90b13e4e6d3aac9389551fad 100644 (file)
@@ -7,7 +7,7 @@ module.exports = function (grunt) {
         testrunner.options.log.tests = false;
         testrunner.options.log.summary = false;
         testrunner.options.log.testing = false;
-        testrunner.options.maxBlockDuration = 120000;
+        testrunner.options.maxBlockDuration = 600000;
 
         var tests;