Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
ffdc18cb
Commit
ffdc18cb
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
fix
#12274
parent
c5bed1a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Gruntfile.js
+13
-13
Gruntfile.js
with
13 additions
and
13 deletions
+13
-13
Gruntfile.js
+
13
-
13
View file @
ffdc18cb
...
...
@@ -7,14 +7,14 @@ module.exports = function (grunt) {
grunt
.
util
.
linefeed
=
'
\n
'
;
RegExp
.
quote
=
function
(
string
)
{
return
string
.
replace
(
/
[
-
\\
^$*+?.()|[
\]
{}
]
/g
,
'
\\
$&
'
)
}
return
string
.
replace
(
/
[
-
\\
^$*+?.()|[
\]
{}
]
/g
,
'
\\
$&
'
)
;
}
;
var
BsLessdocParser
=
require
(
'
./docs/grunt/bs-lessdoc-parser.js
'
)
var
fs
=
require
(
'
fs
'
)
var
generateGlyphiconsData
=
require
(
'
./docs/grunt/bs-glyphicons-data-generator.js
'
)
var
generateRawFilesJs
=
require
(
'
./docs/grunt/bs-raw-files-generator.js
'
)
var
path
=
require
(
'
path
'
)
var
BsLessdocParser
=
require
(
'
./docs/grunt/bs-lessdoc-parser.js
'
)
;
var
fs
=
require
(
'
fs
'
)
;
var
generateGlyphiconsData
=
require
(
'
./docs/grunt/bs-glyphicons-data-generator.js
'
)
;
var
generateRawFilesJs
=
require
(
'
./docs/grunt/bs-raw-files-generator.js
'
)
;
var
path
=
require
(
'
path
'
)
;
// Project configuration.
grunt
.
initConfig
({
...
...
@@ -325,8 +325,8 @@ module.exports = function (grunt) {
sed
:
{
versionNumber
:
{
pattern
:
(
function
()
{
var
old
=
grunt
.
option
(
'
oldver
'
)
return
old
?
RegExp
.
quote
(
old
)
:
old
var
old
=
grunt
.
option
(
'
oldver
'
)
;
return
old
?
RegExp
.
quote
(
old
)
:
old
;
})(),
replacement
:
grunt
.
option
(
'
newver
'
),
recursive
:
true
...
...
@@ -364,16 +364,16 @@ module.exports = function (grunt) {
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
'
))
{
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
sauce-js-unit
'
))
{
testSubtasks
.
push
(
'
connect
'
);
testSubtasks
.
push
(
'
saucelabs-qunit
'
);
}
// Only run BrowserStack tests if there's a BrowserStack access key
if
(
typeof
process
.
env
.
BROWSERSTACK_KEY
!==
'
undefined
'
if
(
typeof
process
.
env
.
BROWSERSTACK_KEY
!==
'
undefined
'
&&
// Skip BrowserStack if running a different subset of the test suite
&&
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
browserstack-js-unit
'
))
{
(
!
process
.
env
.
TWBS_TEST
||
process
.
env
.
TWBS_TEST
===
'
browserstack-js-unit
'
))
{
testSubtasks
.
push
(
'
browserstack_runner
'
);
}
grunt
.
registerTask
(
'
test
'
,
testSubtasks
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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