Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
39a2dab7
Commit
39a2dab7
authored
Dec 14, 2013
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parallelize Travis using build matrix & test subsuites
parent
e98c2dc3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
.travis.yml
.travis.yml
+13
-7
Gruntfile.js
Gruntfile.js
+12
-2
No files found.
.travis.yml
View file @
39a2dab7
...
...
@@ -4,11 +4,11 @@ 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
...
...
@@ -16,3 +16,9 @@ env:
-
secure
:
"
gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp+9oeNZb37jSP0rQ+Ib4OTLjzc3/FawE/fUq5kukZTC7porzc/k0qJNLAZRx3YLALmK1GIdUY="
-
secure
:
"
Gghh/e3Gsbj1+4RR9Lh2aR/xJl35HWiHqlPIeSUqE9D7uDCVTAwNce/dGL3Ew7uJPfJ6Pgr70wD3zgu3stw0Zmzayax0hiDtGwcQCxVIER08wqGANK9C2Q7PYJkNTNtiTo6ehKWbdV4Z+/U+TEYyQfpQTDbAFYk/vVpsdjp0Lmc="
-
secure
:
"
RTbRdx4G/2OTLfrZtP1VbRljxEmd6A1F3GqXboeQTldsnAlwpsES65es5CE3ub/rmixLApOY9ot7OPmNixFgC2Y8xOsV7lNCC62QVpmqQEDyGFFQKb3yO6/dmwQxdsCqGfzf9Np6Wh5V22QFvr50ZLKLd7Uhd9oXMDIk/z1MJ3o="
matrix
:
-
TWBS_TEST=core
-
TWBS_TEST=validate-html
-
TWBS_TEST=sauce-js-unit
matrix
:
fast_finish
:
true
Gruntfile.js
View file @
39a2dab7
...
...
@@ -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
'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment