aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-14 19:09:44 -0800
committerChris Rebert <[email protected]>2013-12-14 19:11:04 -0800
commit39a2dab722c2cccc8bb70ce43599211357d96f16 (patch)
tree1e02e05153e30598e3e110ee1a91eef6b58989ca /Gruntfile.js
parente98c2dc3adfb3e480012454bb5f170c48cf99c45 (diff)
downloadbootstrap-39a2dab722c2cccc8bb70ce43599211357d96f16.tar.xz
bootstrap-39a2dab722c2cccc8bb70ce43599211357d96f16.zip
parallelize Travis using build matrix & test subsuites
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index aae80dc3d..dc301fa27 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -331,9 +331,19 @@ module.exports = function (grunt) {
grunt.registerTask('validate-html', ['jekyll', 'validation']);
// Test task.
- var testSubtasks = ['dist-css', 'jshint', 'jscs', 'qunit', 'validate-html'];
+ var testSubtasks = [];
+ // Skip core tests if running a different subset of the test suite
+ if (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'core') {
+ testSubtasks = testSubtasks.concat(['dist-css', 'jshint', 'jscs', 'qunit']);
+ }
+ // Skip HTML validation if running a different subset of the test suite
+ if (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'validate-html') {
+ testSubtasks.push('validate-html');
+ }
// Only run Sauce Labs tests if there's a Sauce access key
- if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined') {
+ if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined'
+ // Skip Sauce if running a different subset of the test suite
+ && (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'sauce-js-unit')) {
testSubtasks.push('connect');
testSubtasks.push('saucelabs-qunit');
}