2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Only run htmllint on Travis

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

[skip sauce]
This commit is contained in:
Chris Rebert
2015-09-25 15:32:42 -07:00
parent 5a15971920
commit 74cc05c032
2 changed files with 4 additions and 1 deletions
+3 -1
View 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');
}