From 4168c936bf25772f3fca1b922c87922654b82e81 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 10 Oct 2019 14:36:55 +0300 Subject: [PATCH] Add missing keys (if any) --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 27d7f1f6484100..d853696ee09a0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -115,6 +115,8 @@ before_cache: before_install: - sudo rm -rf "${TRAVIS_ROOT}/var/lib/apt/lists/"* + - export MISSING_KEYS=`sudo apt-get update 2>&1 | grep -o '[0-9A-Z]\{16\}$' | xargs` + - if [ ! -z $MISSING_KEYS ]; then sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com $MISSING_KEYS; fi - travis_retry sudo sudo apt-get update 2>&1 - travis_retry sudo apt-get -yq --no-install-suggests --no-install-recommends install docker-ce realpath