Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTesting: Travis Integration out-of-date #36451
Comments
|
@gklandes Thanks so much for explaining the details! This is super helpful for the docs team. Status: Docs team, there's enough info here to test, confirm, and update the docs. |
|
Thanks, @gklandes for this.
Concerning the first point you raised:
Concerning the second point you raised:
Yes you are equally right in this, Chrome addon is now added in
Concerning the third point you raised:
Just immediately after the Configure project for Travis CI section in the Angular Documentation at https://angular.io/guide/testing#configure-project-for-travis-ci, are instructions to set up the So, if those instructions are followed, one does not need to add the
As of now, the latest version of Chrome Driver used by The error will be like such: This because the Ubuntu system specified in So Read more about it at https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment
I made a pull request with the above-discussed changes to the demo repository you provided. Please check it out gklandes/angular-travis-docs-demo#1 |
Remove sudo since it no longer has use in Travis CI build configurations. Change chrome addons to use the latest required method. Remove dist to make the Travis CI builds run in the latest Ubuntu release: Xenial. This because Trusty uses an older version of Chrome which is not supported by the current the latest Chrome Driver, used in ng e2e tests. Fixes angular#36451
Description
The docs for Travis integration under Angular.io > Guide > Testing link do not lead to a working integration.
There are a couple of issues in the sample
.travis.yml:sudo: falseis not necessary and gets flagged in the build log; remove this lineaddonssection should use the newer invocation of google chrome (see example below)scriptsection** the
testline referencesChromeHeadlessCIwhich should beChromeHeadless** the
e2eline references the config filee2e/protractor-ci.conf.jsbut this file's name is actuallye2e/protractor.conf.jsAlso in
protractor.conf.jsI found that capabilities needed to define some options for chrome:What's the affected URL?**
https://angular.io/guide/testing#configure-project-for-travis-ci
Reproduction Steps**
ng new appng testandng e2ecomplete successfully.travis.ymlfileI created a demo repo on Github with Travis CI:
** see "branches" for both failed and successful builds with links to the commit
** this is the commit with the fix: gklandes/angular-travis-docs-demo@50822a8
Expected vs Actual Behavior**
EXPECT
ACTUAL
apt-get install failed The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install google-chrome-stable" failed and exited with 100 during .none; example repo w/ build provided
Browser info
does not appear to be browser related.
Anything else relevant?
The changes to
protractor.conf.jsmay warrant a separate ticket on the angular repo. Please advise if you'd like that bugged separately.