在Travis Bionic构建环境中安装Google Chrome浏览器>>

问题描述 投票:-1回答:1

根据the Travis docs,我需要使用google-chrome源代码行来访问Bionic(Ubuntu 18.04)构建环境中的google-chrome-stable程序包,如下所示:

dist: bionic

addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable

实际上,这在Xenial构建环境中起作用。但是,在仿生环境中,我收到以下消息:

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稳定版本不是

;这会在以后的版本中导致chromedriver出现问题。

根据Travis文档,我需要使用google-chrome源代码行才能访问Bionic(Ubuntu 18.04)构建环境中的google-chrome-stable包,如下所示:dist:bionic ...

google-chrome travis-ci ubuntu-18.04
1个回答
-1
投票

似乎google-chrome不在源安全列表中,尽管有a four-year-old issue要求它,但文档说应该存在,并且它在Xenial中可以使用。这似乎很令人困惑。似乎有效的是the linked docs中的第三个选项,提供了显式的源代码行和关键URL:

© www.soinside.com 2019 - 2024. All rights reserved.