feat(build): initial SauceLabs setup#2347
Conversation
eeb856f to
7267245
Compare
gulpfile.js
Outdated
There was a problem hiding this comment.
- what if you mix sauce & non-sauce
- throw on unknown browser ?
35fad64 to
374cff1
Compare
|
2 issues to be solve (see https://travis-ci.org/angular/angular/jobs/65432819 ):
|
b37b272 to
1f7809e
Compare
|
All fixed, the PR is ready for review and discussion. For information, I've tested all the browsers defined in On the bright side, all the recent ones are green! Older ones are failing:
The questions to discuss: |
7ee48fb to
0837ccb
Compare
|
Thanks for the review, some comments integrated. For the Saucelabs part, I reused the scripts and key management that are used in other angular repositories (angular.js, zone.js). About the command itself, it is true that |
|
@alexeagle could you review / set LGTM label? |
|
I spoke to Marc about this PR today. Do we want to merge it right now? This On Wed, Jul 22, 2015 at 1:42 AM Tobias Bosch notifications@github.com
|
|
It could also be merged without activating Saucelabs in CI until before beta (not needed anyway if we only target Chrome and Firefox). |
|
That sounds good to me, except for one concern. Will the bits get rusted if On Thu, Jul 23, 2015 at 12:58 AM Marc Laval notifications@github.com
|
|
Well, in our Travis matrix, we could add a special configuration only for testing in SauceLabs . This one would be allowed to fail without making the entire build to fail, see: http://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail This would bring a good insight about the status on non-Chrome browsers, even if it has to be monitored manually. |
|
It will also consume more travis worker slots. On Thu, Jul 23, 2015 at 3:13 PM Marc Laval notifications@github.com wrote:
|
eb7436a to
97f4d16
Compare
|
Updated to this approach. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Do not merge, it requires more testing on local machines and on Travis.
This PR introduces the ability to run tests on SauceLabs with various browsers (see issue #2239).
To do so, Sauce Connect needs to be started with valid credentials.
Then run
gulp test.unit.js --browsers=option1,option2,..,optionNwhere options are any mix of browsers and aliases which are defined in thesauce.conf.jsfile. They are case insensitive, and theSL_prefix must not be added for browsers.Some examples of commands:
For CI, the idea is to run karma with the
CIalias defined in the same file.