aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2016-06-27 14:19:10 -0700
committerGitHub <[email protected]>2016-06-27 14:19:10 -0700
commite95e9fed09a4ef19d093ad8c44611da396c61d01 (patch)
treeff6824a2177ddb5501259fe01d878bc9a90a8bcb /Gruntfile.js
parentbba039d2fd1ffbd95a03589e9e87fd55cb273302 (diff)
downloadbootstrap-e95e9fed09a4ef19d093ad8c44611da396c61d01.tar.xz
bootstrap-e95e9fed09a4ef19d093ad8c44611da396c61d01.zip
Allow PRs to be previewed at http://preview.twbsapps.com (#20179)
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 065fea774..69dfa3873 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -277,6 +277,9 @@ module.exports = function (grunt) {
},
'postcss-docs': {
command: 'npm run postcss-docs'
+ },
+ 'upload-preview': {
+ command: './grunt/upload-preview.sh'
}
},
@@ -351,12 +354,13 @@ module.exports = function (grunt) {
// Only run Sauce Labs tests if there's a Sauce access key
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined' &&
// Skip Sauce if running a different subset of the test suite
- runSubset('sauce-js-unit') &&
- // Skip Sauce on Travis when [skip sauce] is in the commit message
- isUndefOrNonZero(process.env.TWBS_DO_SAUCE)) {
- testSubtasks.push('babel:dev');
- testSubtasks.push('connect');
- testSubtasks.push('saucelabs-qunit');
+ runSubset('sauce-js-unit')) {
+ testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs', 'exec:upload-preview']);
+ // Skip Sauce on Travis when [skip sauce] is in the commit message
+ if (isUndefOrNonZero(process.env.TWBS_DO_SAUCE)) {
+ testSubtasks.push('connect');
+ testSubtasks.push('saucelabs-qunit');
+ }
}
grunt.registerTask('test', testSubtasks);