Skip to content

Commit

Permalink
Run pipeline with qemu 4.1.0-1.fc31.
Browse files Browse the repository at this point in the history
* We still use the fc31 version, though qemu 4.1.0-1.fc32 also exists
  on Fedora web site.
  Because it seems fc31 is more stable version than fc32.
  fc32 is very new.
* Install rpm2cpio and cpio deb packages in bionic,
  to prevent the error "cpio: Malformed number" when extracting the RPM file.
  • Loading branch information
junaruga committed Sep 2, 2019
1 parent 327d6f7 commit 00cd7f9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@ addons:
config:
retries: true
update: true
sources:
# Install rpm2cpio (4.14.1+dfsg1-2) and
# cpio (2.12+dfsg-6) packages for bionic,
# the error "cpio: Malformed number" happens
# for qemu-user-static-4.1.0-1.fc31.x86_64.rpm,
# with rpm2cpio (4.12.0.1+dfsg1-3build3) and
# cpio (2.11+dfsg-5ubuntu1) and rpm2cpio for xenial.
# https://packages.ubuntu.com/bionic/cpio
- sourceline: 'deb http://archive.ubuntu.com/ubuntu bionic main universe'
packages:
- jq
- rpm2cpio
- cpio
env:
global:
- MAJOR_VERSION=4
- MINOR_VERSION=0
- MINOR_VERSION=1
- PATCH_VERSION=0
- RELEASE_VERSION=4
- RELEASE_VERSION=1
- VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION-$RELEASE_VERSION
# Container tag version string.
# Set it here to give a flexibility of the value such as "X.Y".
Expand All @@ -29,7 +38,7 @@ env:
# Container repository
- DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
# - DOCKER_REPO=$DOCKER_SERVER/your_username/qemu-user-static
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/4.0.0/4.fc31/x86_64/qemu-user-static-4.0.0-4.fc31.x86_64.rpm"
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/4.1.0/1.fc31/x86_64/qemu-user-static-4.1.0-1.fc31.x86_64.rpm"
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
before_script:
- wget --content-disposition $PACKAGE_URI
Expand Down

0 comments on commit 00cd7f9

Please sign in to comment.