Skip to content

Commit

Permalink
ci: bump Fedora image version to 33
Browse files Browse the repository at this point in the history
The testsuite will soon be switching to testing multiple filesystems,
which exposes a bug in F32 image's kernel. Since Fedora 33 has been
released recently and the testsuite runs just fine on it, just bump the
image version to avoid the bug.

This commit also fixes the script to read out the Fedora image version
from environment variables instead of using hard-coded values.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
  • Loading branch information
WOnder93 authored and fishilico committed Nov 11, 2020
1 parent ce46daa commit 3de445a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -36,7 +36,7 @@ matrix:
env: PYVER=python3.8 RUBYLIBVER=2.7 LINKER=bfd
include:
- compiler: gcc
env: TRAVIS_RUN_KVM=true TRAVIS_CLOUD_IMAGE_VERSION="32:1.6"
env: TRAVIS_RUN_KVM=true FEDORA_MAJOR=33 FEDORA_MINOR=1.2
install:
- skip
before_script:
Expand Down
12 changes: 7 additions & 5 deletions scripts/ci/travis-kvm-setup.sh
Expand Up @@ -7,13 +7,15 @@ TEST_RUNNER="scripts/ci/fedora-test-runner.sh"
#
# Variables for controlling the Fedora Image version and download URLs.
#
MAJOR_VERSION="32"
MINOR_VERSION="1.6"
if [ -z "$FEDORA_MAJOR" ] || [ -z "$FEDORA_MINOR" ]; then
echo "$0: FEDORA_MAJOR and FEDORA_MINOR must be set!" 1>&2
exit 1
fi

BASE_URL="https://download.fedoraproject.org/pub/fedora/linux/releases"
IMAGE_BASE_NAME="Fedora-Cloud-Base-$MAJOR_VERSION-$MINOR_VERSION.x86_64"
IMAGE_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz"
CHECK_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/Fedora-Cloud-$MAJOR_VERSION-$MINOR_VERSION-x86_64-CHECKSUM"
IMAGE_BASE_NAME="Fedora-Cloud-Base-$FEDORA_MAJOR-$FEDORA_MINOR.x86_64"
IMAGE_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz"
CHECK_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/Fedora-Cloud-$FEDORA_MAJOR-$FEDORA_MINOR-x86_64-CHECKSUM"
GPG_URL="https://getfedora.org/static/fedora.gpg"

#
Expand Down

0 comments on commit 3de445a

Please sign in to comment.