aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-14 20:04:52 -0800
committerMark Otto <[email protected]>2013-12-14 20:04:52 -0800
commitbcc2c8b09e60138567b067b13a43630502463ddc (patch)
tree1ad2eae128e157085cbae522f6994e8ef1136ab3
parent432b9f9cde8e2b067fd54ed148c5f8df510e30c5 (diff)
parentc243e2417e612cbf8e9cb93fe7d9767ab8251cc8 (diff)
downloadbootstrap-bcc2c8b09e60138567b067b13a43630502463ddc.tar.xz
bootstrap-bcc2c8b09e60138567b067b13a43630502463ddc.zip
Merge branch 'master' of github.com:twbs/bootstrap
-rw-r--r--.travis.yml20
-rw-r--r--Gruntfile.js14
2 files changed, 25 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index 78a89aabf..f36af0aa4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,15 +4,21 @@ node_js:
before_install:
- time sudo pip install --use-mirrors -r ./test-infra/requirements.txt
install:
- - time gem install jekyll
+ - if [ "$TWBS_TEST" = validate-html ]; then time gem install jekyll; fi
- time npm install -g grunt-cli
- time ./test-infra/node_modules_cache.py download || time npm install
after_script:
- - time ./test-infra/node_modules_cache.py upload
+ - if [ "$TWBS_TEST" = core ]; then time ./test-infra/node_modules_cache.py upload; fi
env:
global:
- - SAUCE_USERNAME: bootstrap
- - secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="
- - secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLAL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mwQxdsCqGfzf9Np6Wh5V22QFvr50ZLKLd7Uhd9oXMDIk/z1MJ3o="
+ matrix:
+ - TWBS_TEST=core
+ - TWBS_TEST=validate-html
+ - TWBS_TEST=sauce-js-unit
+matrix:
+ fast_finish: true
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');
}