-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Conversation
@@ -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']); |
There was a problem hiding this comment.
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']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra semicolon semi
@cvrebert Wanna take a look at this and let me know what you think? <3 |
- npm install | ||
- npm install --only=development | ||
after_success: | ||
- grunt/upload-preview.sh |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed because...?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
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']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra semicolon semi
Ah. I saw that but I wasn't sure if it was still on the table. |
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).