travis-ci / apt-source-safelist

Safelist of apt sources approved for build environments with restricted sudo
MIT License
79 stars 94 forks source link

Whitelist "ubuntu-toolchain-r-test" for Bionic #410

Closed offa closed 4 years ago

offa commented 5 years ago

The Ubuntu Toolchain Test PPA which provides current GCCs is blocked on Bionic:

Adding APT Sources

Disallowing sources: ubuntu-toolchain-r-test

To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon

Full example build log

Build system information

Build language: generic
Build group: stable
Build dist: bionic

Travis.yml example:

language: generic

dist: bionic

matrix:
    include:
    - env: CXX=g++-9 CC=gcc-9
      addons:
        apt:
          packages:
            - g++-9
          sources: &sources
            - ubuntu-toolchain-r-test

script:
  - ${CC} --version
  - ${CXX} --version
  - cmake --version
EwoutH commented 5 years ago

@offa Did you by any chance find a workaround for this issue?

offa commented 5 years ago

My current workaround is using sourceline:

addons:
  apt:
    sources:
      - sourceline: 'ppa:ubuntu-toolchain-r/test'
offa commented 4 years ago

I'll close here, since it's no longer relevant.