From 4e42d9ed0300995df3f2ef00724b2a837bc2a971 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Tue, 4 Dec 2018 16:43:11 -0500 Subject: [PATCH] travis: Work around broken travis NO_PUBKEY error W: GPG error: https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F6609E60DC62814E E: The repository 'https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu trusty InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index dca556c8..89d9bede 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,8 @@ dist: trusty apt: update: true before_install: + # workaround broken travis NO_PUBKEY error + - if [ -e /etc/apt/sources.list.d/rabbitmq_rabbitmq-server.list ]; then sudo rm -f /etc/apt/sources.list.d/rabbitmq_rabbitmq-server.list; fi # as per a number of comments online, this might mitigate some flaky fails... - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6; fi # apt update tends to be flaky in travis, retry up to 3 times on failure