Skip to content

Commit cf81cb6

Browse files
committed
Merge branch 'master' into gradient-prefix-cleanup
Conflicts: dist/css/bootstrap.min.css docs-assets/js/raw-files.js
2 parents 3f1e4b9 + 8c5dc54 commit cf81cb6

20 files changed

+210
-66
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ before_script:
66
- npm install -g grunt-cli
77
env:
88
global:
9-
- secure: Besg41eyU+2mfxrywQ4ydOShMdc34ImaO0S0ENP+aCOBuyNBIgP59wy5tBMmyai2/8eInYeVps4Td96mWInMMxzTe3Bar7eTLG5tWVKRSr/wc4NBPZ/ppoPAmCEsz9Y+VptRH9/FO8n7hsL9EFZ+xBKbG+C0SccGoyBDpA5j7/w=
10-
- secure: Ptiv7phCImFP3ALIz+sMQzrZg8k7C1gLZbFBhWxjnQr3g06wIfX3Ls5y9OHvxid+lOZZjISui3wzBVgpVHqwHUYf96+r0mo6/mJ+F4ffUmShZANVaIMD/JRTnXhUQJbvntGLvxn1EYWPdNM+2IHJrMipnjHxU9tkgAnlel4Zdew=
11-
- TWBS_HAVE_OWN_BROWSERSTACK_KEY: ""
9+
- SAUCE_USERNAME: bootstrap
10+
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ We only accept issues that are bug reports or feature requests. Bugs must be iso
5858

5959
With v3.1, we're moving from the Apache 2 to the MIT license for the Bootstrap code (not the docs). We're in the process of collecting permissions from all Bootstrap contributors with code still part of the project to make this happen. For details, please see [#2054](https://github.com/twbs/bootstrap/issues/2054).
6060

61-
By contributing your code, you agree to dual-license your contribution under the [Apache 2](https://github.com/twbs/bootstrap/blob/master/LICENSE) and [MIT](https://github.com/twbs/bootstrap/blob/master/MIT) licenses.
61+
By contributing your code, you agree to dual-license your contribution under the [Apache 2](https://github.com/twbs/bootstrap/blob/master/LICENSE) and [MIT](https://github.com/twbs/bootstrap/blob/master/LICENSE-MIT) licenses.
6262

6363

6464

Gruntfile.js

Lines changed: 99 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,105 @@ module.exports = function(grunt) {
169169
replacement: grunt.option('newver'),
170170
recursive: true
171171
}
172+
},
173+
174+
'saucelabs-qunit': {
175+
all: {
176+
options: {
177+
build: process.env.TRAVIS_JOB_ID,
178+
concurrency: 3,
179+
urls: ['http://127.0.0.1:3000/js/tests/index.html'],
180+
browsers: [
181+
// See https://saucelabs.com/docs/platforms/webdriver
182+
{
183+
browserName: 'safari',
184+
version: '6',
185+
platform: 'OS X 10.8'
186+
},
187+
{
188+
browserName: 'chrome',
189+
version: '28',
190+
platform: 'OS X 10.6'
191+
},
192+
/* FIXME: currently fails 1 tooltip test
193+
{
194+
browserName: 'firefox',
195+
version: '25',
196+
platform: 'OS X 10.6'
197+
},*/
198+
// Mac Opera not currently supported by Sauce Labs
199+
/* FIXME: currently fails 1 tooltip test
200+
{
201+
browserName: 'internet explorer',
202+
version: '11',
203+
platform: 'Windows 8.1'
204+
},*/
205+
/*
206+
{
207+
browserName: 'internet explorer',
208+
version: '10',
209+
platform: 'Windows 8'
210+
},
211+
{
212+
browserName: 'internet explorer',
213+
version: '9',
214+
platform: 'Windows 7'
215+
},
216+
{
217+
browserName: 'internet explorer',
218+
version: '8',
219+
platform: 'Windows 7'
220+
},
221+
{// unofficial
222+
browserName: 'internet explorer',
223+
version: '7',
224+
platform: 'Windows XP'
225+
},
226+
*/
227+
{
228+
browserName: 'chrome',
229+
version: '31',
230+
platform: 'Windows 8.1'
231+
},
232+
{
233+
browserName: 'firefox',
234+
version: '25',
235+
platform: 'Windows 8.1'
236+
},
237+
// Win Opera 15+ not currently supported by Sauce Labs
238+
{
239+
browserName: 'iphone',
240+
version: '6.1',
241+
platform: 'OS X 10.8'
242+
},
243+
// iOS Chrome not currently supported by Sauce Labs
244+
// Linux (unofficial)
245+
{
246+
browserName: 'chrome',
247+
version: '30',
248+
platform: 'Linux'
249+
},
250+
{
251+
browserName: 'firefox',
252+
version: '25',
253+
platform: 'Linux'
254+
}
255+
// Android Chrome not currently supported by Sauce Labs
256+
/* Android Browser (super-unofficial)
257+
{
258+
browserName: 'android',
259+
version: '4.0',
260+
platform: 'Linux'
261+
}
262+
*/
263+
],
264+
}
265+
}
172266
}
173267
});
174268

175269

176270
// These plugins provide necessary tasks.
177-
grunt.loadNpmTasks('browserstack-runner');
178271
grunt.loadNpmTasks('grunt-contrib-clean');
179272
grunt.loadNpmTasks('grunt-contrib-concat');
180273
grunt.loadNpmTasks('grunt-contrib-connect');
@@ -186,19 +279,18 @@ module.exports = function(grunt) {
186279
grunt.loadNpmTasks('grunt-html-validation');
187280
grunt.loadNpmTasks('grunt-jekyll');
188281
grunt.loadNpmTasks('grunt-recess');
282+
grunt.loadNpmTasks('grunt-saucelabs');
189283
grunt.loadNpmTasks('grunt-sed');
190284

191285
// Docs HTML validation task
192286
grunt.registerTask('validate-html', ['jekyll', 'validation']);
193287

194288
// Test task.
195289
var testSubtasks = ['dist-css', 'jshint', 'qunit', 'validate-html'];
196-
// Only run BrowserStack tests under Travis
197-
if (process.env.TRAVIS) {
198-
// Only run BrowserStack tests if this is a mainline commit in twbs/bootstrap, or you have your own BrowserStack key
199-
if ((process.env.TRAVIS_REPO_SLUG === 'twbs/bootstrap' && process.env.TRAVIS_PULL_REQUEST === 'false') || process.env.TWBS_HAVE_OWN_BROWSERSTACK_KEY) {
200-
testSubtasks.push('browserstack_runner');
201-
}
290+
// Only run Sauce Labs tests if there's a Sauce access key
291+
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined') {
292+
testSubtasks.push('connect');
293+
testSubtasks.push('saucelabs-qunit');
202294
}
203295
grunt.registerTask('test', testSubtasks);
204296

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# [Bootstrap](http://getbootstrap.com) [![Build Status](https://secure.travis-ci.org/twbs/bootstrap.png)](http://travis-ci.org/twbs/bootstrap) [![devDependency Status](https://david-dm.org/twbs/bootstrap/dev-status.png)](https://david-dm.org/twbs/bootstrap#info=devDependencies)
2+
[![Selenium Test Status](https://saucelabs.com/browser-matrix/bootstrap.svg)](https://saucelabs.com/u/bootstrap)
23

34
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).
45

browserstack.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

components.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ <h4>Element-specific usage</h4>
11711171
<a class="btn btn-default" role="button">Left</a>
11721172
<a class="btn btn-default" role="button">Middle</a>
11731173
<div class="btn-group">
1174-
<a type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
1174+
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown">
11751175
Right dropdown <span class="caret"></span>
11761176
</a>
11771177
<ul class="dropdown-menu" role="menu">

css.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ <h3 id="overview-normalize">Normalize</h3>
5454
<p>For improved cross-browser rendering, we use <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
5555

5656
<h3 id="overview-container">Containers</h3>
57-
<p>Easily center a page's contents by wrapping its contents in a <code>.container</code>. Containers set <code>max-width</code> at various media query breakpoints to match our grid system.</p>
57+
<p>Easily center a page's contents by wrapping its contents in a <code>.container</code>. Containers set <code>width</code> at various media query breakpoints to match our grid system.</p>
58+
<p>Note that, due to <code>padding</code> and fixed widths, containers are not nestable by default.</p>
5859
{% highlight html %}
5960
<div class="container">
6061
...

0 commit comments

Comments
 (0)