travis-ci / apt-source-safelist

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

add llvm-toolchain-trusty-7 #392

Closed sylvestre closed 6 years ago

prince-chrismc commented 6 years ago

Using this config manually I was able to build my project

akimd commented 6 years ago

@meatballhat What can we do to help?

rhalbersma commented 6 years ago

Please merge asap!

akimd commented 6 years ago

I don't understand why it should take so long :(

Is everything ok at Travis? Should we worry?

sylvestre commented 6 years ago

@BanzaiMan could you please merge that? Thanks

paulocoutinhox commented 6 years ago

@BanzaiMan could you please merge that? Thanks

paulocoutinhox commented 6 years ago

I got error:


Setting APT mirror in /etc/apt/sources.list: http://archive.ubuntu.com/ubuntu/
Adding APT Sources
1.67s$ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
gpg: keyring `/tmp/tmpls17f9tj/secring.gpg' created
gpg: keyring `/tmp/tmpls17f9tj/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpls17f9tj/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
0.07s$ curl -sSL "https://build.travis-ci.org/files/gpg/llvm-toolchain-trusty-7.asc" | sudo -E apt-key add -
gpg: no valid OpenPGP data found.
The command "curl -sSL "https://build.travis-ci.org/files/gpg/llvm-toolchain-trusty-7.asc" | sudo -E apt-key add -" failed and exited with 2 during .
Your build has been stopped.
paulocoutinhox commented 6 years ago

https://travis-ci.org/ezored/dependency-logger/jobs/437863294

prince-chrismc commented 6 years ago

seems like everything is working on my end =)

image

I was able to remove the key_url and source line too, my build still passes

here's my config for those who want to use clang 7.0 on Linux in travis-ci hopefully google lands you here =)

- os: linux
      addons:
        apt:
          sources:
          - ubuntu-toolchain-r-test
          - llvm-toolchain-trusty-7
          packages:
          - clang-7
          - libstdc++-7-dev
      env:
      - MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"
paulocoutinhox commented 6 years ago

Working when i added:

packages:
  - libstdc++-7-dev

But failling for gcc 6/7/8 because dont support constexpr. But is another problem. https://travis-ci.org/ezored/dependency-logger/jobs/437916450

Thanks.

juliangaal commented 6 years ago

c++ is such a pain with travis. Thanks for this

psi29a commented 6 years ago

Still getting:

Adding APT Sources Disallowing sources: llvm-toolchain-trusty-7.0 To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon

https://travis-ci.org/OpenMW/openmw/jobs/452334682

hartwork commented 6 years ago

@psi29a , the .0 is the problem, try llvm-toolchain-trusty-7 without .0 as seen here: https://github.com/uriparser/uriparser/blob/master/.travis.yml#L11

psi29a commented 6 years ago

@hartwork thanks! :)