Travis kills the build if the command doesn't produce any output for 10 minutes. The previous commit dropped most of the test cases and left only those with potentially long delays. This could make more build fail. This commit introduces the travis_wait command so Travis waits for 30 minutes without any output before it kills our job.
28 lines
802 B
YAML
28 lines
802 B
YAML
dist: bionic
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- genisoimage
|
|
- gnupg2
|
|
- qemu-utils
|
|
- qemu-kvm
|
|
- rpm
|
|
- systemd-container
|
|
matrix:
|
|
include:
|
|
- name: fedora_30
|
|
arch: amd64
|
|
- name: fedora_31
|
|
arch: amd64
|
|
- name: fedora_32
|
|
arch: amd64
|
|
|
|
language: generic
|
|
script:
|
|
# set go version to 1.12.x
|
|
- eval "$(gimme 1.12.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'
|
|
- export GO111MODULE=on
|
|
- go test -c -tags 'travis integration' -o osbuild-image-tests ./cmd/osbuild-image-tests
|
|
- travis_wait 30 sudo ./osbuild-image-tests -test.v test/cases/${TRAVIS_JOB_NAME}*-x86_64-ami-boot.json test/cases/${TRAVIS_JOB_NAME}*-x86_64-vhd-boot.json
|