根据the Travis docs,我需要使用google-chrome
源代码行来访问Bionic(Ubuntu 18.04)构建环境中的google-chrome-stable
程序包,如下所示:
dist: bionic addons: apt: sources: - google-chrome packages: - google-chrome-stable
实际上,这在Xenial构建环境中起作用。但是,在仿生环境中,我收到以下消息:
;这会在以后的版本中导致chromedriver出现问题。Adding APT Sources Disallowing sources: google-chrome To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon
构建并不会失败,但是安装了最新的Google Chrome稳定版本不是
根据Travis文档,我需要使用google-chrome源代码行才能访问Bionic(Ubuntu 18.04)构建环境中的google-chrome-stable包,如下所示:dist:bionic ...
似乎google-chrome
不在源安全列表中,尽管有a four-year-old issue要求它,但文档说应该存在,并且它在Xenial中可以使用。这似乎很令人困惑。似乎有效的是the
linked docs中的第三个选项,提供了显式的源代码行和关键URL: