Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis build infrastructure refresh. #21108

Merged
merged 1 commit into from
Dec 5, 2016
Merged

Travis build infrastructure refresh. #21108

merged 1 commit into from
Dec 5, 2016

Conversation

bardiharborow
Copy link
Member

@bardiharborow bardiharborow commented Nov 9, 2016

Resolves #17163. Ubuntu Trusty containers are now available on Travis, removing the last obstacle stopping us moving to the container based environment. This cuts build times by about 15 seconds.

Regarding the other changes: Ruby 2.3.1 comes preinstalled on the new images, so I have removed the install directive. The npm install directive has been made conditional as only the Node 4.x environment will have npm 2.x. --retry=3 has been added to the bundler command to bring it in line with Travis' default and to provide greater network stability. NPM_CONFIG_PROGRESS="false" has been removed as npm/npm#11283 seems to be fixed. Git --depth has been lowered.

Coming soon in another PR, is switching to using the Travis apt addon to download the Google Cloud SDK (blocked on travis-ci/apt-package-safelist#3515) and switching to using the Travis sauce_connect addon rather than using grunt-saucelabs (blocked on further investigation).

@@ -361,7 +358,7 @@ module.exports = function (grunt) {
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined' &&
// Skip Sauce if running a different subset of the test suite
runSubset('sauce-js-unit')) {
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs', 'exec:upload-preview']);
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs']);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra semicolon semi

@@ -361,7 +358,7 @@ module.exports = function (grunt) {
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined' &&
// Skip Sauce if running a different subset of the test suite
runSubset('sauce-js-unit')) {
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs', 'exec:upload-preview']);
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs']);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra semicolon semi

@mdo
Copy link
Member

mdo commented Nov 26, 2016

@cvrebert Wanna take a look at this and let me know what you think? <3

@mdo mdo modified the milestone: v4.0.0-alpha.6 Nov 28, 2016
- npm install
- npm install --only=development
after_success:
- grunt/upload-preview.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was where it was in the Gruntfile so that it would only run only when the docs had actually been built, and so it would only run once (instead of 3x on account of the build matrix).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. I was mainly moving this out of the Gruntfile as part of the whole move to npm scripts, but I forgot about the whole build matrix issue. I've added a condition on the front. I can move back to the Gruntfile if you really don't like it here.

matrix:
fast_finish: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast_finish only seems to have meaning where there are allowed failures.

- cp grunt/npm-shrinkwrap.json ./
- npm install
- npm install --only=development
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we ever sort out the "use ES6 imports for our deps" issue, then we'll need the non-dev dependencies (jQuery, Tether, etc.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

@cvrebert
Copy link
Collaborator

and switching to using the Travis sauce_connect addon rather than using grunt-saucelabs

See #18754. BrowserStack seems like our best option IMHO.

@@ -361,7 +358,7 @@ module.exports = function (grunt) {
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined' &&
// Skip Sauce if running a different subset of the test suite
runSubset('sauce-js-unit')) {
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs', 'exec:upload-preview']);
testSubtasks = testSubtasks.concat(['dist', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs']);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra semicolon semi

@bardiharborow
Copy link
Member Author

See #18754. BrowserStack seems like our best option IMHO.

Ah. I saw that but I wasn't sure if it was still on the table.

@mdo mdo merged commit 5a19d48 into twbs:v4-dev Dec 5, 2016
@mdo mdo mentioned this pull request Dec 5, 2016
@bardiharborow bardiharborow deleted the travis branch December 5, 2016 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants