ci/travis: switch to the Go implementation of image tests

There's now nothing preventing us from using the newer and better Go
implementation of image tests.

Also, the travis config was simplified to be more readable.
This commit is contained in:
Ondřej Budai 2020-03-16 15:05:01 +01:00 committed by Tom Gundersen
parent 15e905b4d2
commit d83908f0cf

View file

@ -12,33 +12,18 @@ matrix:
include:
- name: fedora-30
arch: amd64
language: python
python: 3.7
script:
# ubuntu's rpm package sets dbpath to ~/.rpmdb, which makes rpm fail...
- sudo sh -c 'mkdir /etc/rpm; echo "%_dbpath /var/lib/rpm" > /etc/rpm/macros'
- sudo env "PATH=$PATH" "PYTHONUNBUFFERED=1" test/run --arches x86_64 --distro fedora-30
- name: fedora-30
arch: arm64
language: python
python: 3.7
script:
# ubuntu's rpm package sets dbpath to ~/.rpmdb, which makes rpm fail...
- sudo sh -c 'mkdir /etc/rpm; echo "%_dbpath /var/lib/rpm" > /etc/rpm/macros'
- sudo env "PATH=$PATH" "PYTHONUNBUFFERED=1" test/run --arches aarch64 --distro fedora-30
- name: fedora-31
arch: amd64
language: python
python: 3.7
script:
# ubuntu's rpm package sets dbpath to ~/.rpmdb, which makes rpm fail...
- sudo sh -c 'mkdir /etc/rpm; echo "%_dbpath /var/lib/rpm" > /etc/rpm/macros'
- sudo env "PATH=$PATH" "PYTHONUNBUFFERED=1" test/run --arches x86_64 --distro fedora-31
- name: fedora-31
arch: arm64
language: python
python: 3.7
script:
# ubuntu's rpm package sets dbpath to ~/.rpmdb, which makes rpm fail...
- sudo sh -c 'mkdir /etc/rpm; echo "%_dbpath /var/lib/rpm" > /etc/rpm/macros'
- sudo env "PATH=$PATH" "PYTHONUNBUFFERED=1" test/run --arches aarch64 --distro fedora-31
language: generic
script:
# set go version to 1.13.x
- eval "$(gimme 1.13.x)"
# ubuntu's rpm package sets dbpath to ~/.rpmdb, which makes rpm fail...
- sudo sh -c 'mkdir /etc/rpm; echo "%_dbpath /var/lib/rpm" > /etc/rpm/macros'
- go build -tags travis ./cmd/osbuild-image-tests
- sudo ./osbuild-image-tests --distro $TRAVIS_JOB_NAME