Commit 74cc05c0 authored by Chris Rebert's avatar Chris Rebert
Browse files

Only run htmllint on Travis

So as to avoid any dependence on Java for normal users of the Gruntfile.

[skip sauce]
parent 5a159719
Showing with 4 additions and 1 deletion
+4 -1
...@@ -18,6 +18,7 @@ module.exports = function (grunt) { ...@@ -18,6 +18,7 @@ module.exports = function (grunt) {
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var glob = require('glob'); var glob = require('glob');
var isTravis = require('is-travis');
var npmShrinkwrap = require('npm-shrinkwrap'); var npmShrinkwrap = require('npm-shrinkwrap');
var mq4HoverShim = require('mq4-hover-shim'); var mq4HoverShim = require('mq4-hover-shim');
...@@ -436,7 +437,8 @@ module.exports = function (grunt) { ...@@ -436,7 +437,8 @@ module.exports = function (grunt) {
} }
// Skip HTML validation if running a different subset of the test suite // Skip HTML validation if running a different subset of the test suite
if (runSubset('validate-html') && 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)) { isUndefOrNonZero(process.env.TWBS_DO_VALIDATOR)) {
testSubtasks.push('validate-html'); testSubtasks.push('validate-html');
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment