Skip to content

Commit 5f51be3

Browse files
[travis] Tolerate GPG failures in Fedora rawhide
1 parent 04f347d commit 5f51be3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@ if [ -f /etc/debian_version ]; then
2525
source ./.venv/bin/activate
2626
elif [ -f /etc/redhat-release ]; then
2727
# yum has no update-only verb
28+
function yuminst() { yum -y --nogpgcheck install $@ }
2829

29-
yum -y install krb5-{devel,libs,server,workstation} which gcc findutils
30+
yuminst krb5-{devel,libs,server,workstation} which gcc findutils
3031

3132
if [ -f /etc/fedora-release ]; then
3233
# path to binary here in case Rawhide changes it
33-
yum install -y redhat-rpm-config \
34+
yuminst redhat-rpm-config \
3435
/usr/bin/virtualenv python${PYTHON}-{virtualenv,devel}
3536
virtualenv -p $(which python${PYTHON}) .venv
3637
source ./.venv/bin/activate
3738
pip install --install-option='--no-cython-compile' cython
3839
else
3940
# Cython on el7 is too old - downstream patches
40-
yum install -y python$IS3-{virtualenv,devel}
41+
yuminst python$IS3-{virtualenv,devel}
4142
virtualenv -p $(which python$IS3) .venv
4243
source ./.venv/bin/activate
4344
pip install --upgrade pip # el7 pip doesn't quite work right

0 commit comments

Comments
 (0)