Skip to content

Commit b39fa50

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,22 @@ 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() {
29+
yum -y --nogpgcheck install $@
30+
}
2831

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

3134
if [ -f /etc/fedora-release ]; then
3235
# path to binary here in case Rawhide changes it
33-
yum install -y redhat-rpm-config \
36+
yuminst redhat-rpm-config \
3437
/usr/bin/virtualenv python${PYTHON}-{virtualenv,devel}
3538
virtualenv -p $(which python${PYTHON}) .venv
3639
source ./.venv/bin/activate
3740
pip install --install-option='--no-cython-compile' cython
3841
else
3942
# Cython on el7 is too old - downstream patches
40-
yum install -y python$IS3-{virtualenv,devel}
43+
yuminst python$IS3-{virtualenv,devel}
4144
virtualenv -p $(which python$IS3) .venv
4245
source ./.venv/bin/activate
4346
pip install --upgrade pip # el7 pip doesn't quite work right

0 commit comments

Comments
 (0)