]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Only run htmllint on Travis
authorChris Rebert <code@chrisrebert.com>
Fri, 25 Sep 2015 22:32:42 +0000 (15:32 -0700)
committerChris Rebert <code@chrisrebert.com>
Fri, 25 Sep 2015 22:34:31 +0000 (15:34 -0700)
So as to avoid any dependence on Java for normal users of the Gruntfile.

[skip sauce]

Gruntfile.js
package.json

index dbcf935a82ac0d0980843e37be85b9fd8b459d5d..deae1ca863ebdd4e1f5b0ad27203e8ad3a12034f 100644 (file)
@@ -18,6 +18,7 @@ module.exports = function (grunt) {
   var fs = require('fs');
   var path = require('path');
   var glob = require('glob');
+  var isTravis = require('is-travis');
   var npmShrinkwrap = require('npm-shrinkwrap');
   var mq4HoverShim = require('mq4-hover-shim');
 
@@ -436,7 +437,8 @@ module.exports = function (grunt) {
   }
   // Skip HTML validation if running a different subset of the test suite
   if (runSubset('validate-html') &&
-      // Skip HTML5 validator on Travis when [skip validator] is in the commit message
+      isTravis &&
+      // Skip HTML5 validator when [skip validator] is in the commit message
       isUndefOrNonZero(process.env.TWBS_DO_VALIDATOR)) {
     testSubtasks.push('validate-html');
   }
index 4ee5ab911497ed90216527e0691c818637619dd1..fdd09f5a487d7a25aacf110490d0a56c9600a3c8 100644 (file)
@@ -58,6 +58,7 @@
     "grunt-scss-lint": "^0.3.8",
     "grunt-sed": "~0.1.1",
     "grunt-stamp": "^0.1.0",
+    "is-travis": "^1.0.0",
     "load-grunt-tasks": "~3.3.0",
     "markdown-it": "^4.4.0",
     "mq4-hover-shim": "^0.2.0",