From b69569ba55d3b59fd0d844ad215577669d65d57d Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Tue, 16 Jul 2019 18:58:44 +0200 Subject: [PATCH] travis: check if qemu works --- .travis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a68ce7f852..77ff4a11e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,12 +56,16 @@ jobs: - go run build/ci.go install - go run build/ci.go test -coverage $TEST_PACKAGES - - os: FreeBSD - dist: 12.0-STABLE + - os: linux + dist: xenial go: 1.12.x script: - - go run build/ci.go install - - go run build/ci.go test -coverage $TEST_PACKAGES + - sudo apt install -y qemu-system qemu-kvm qemu-utils + - wget https://download.freebsd.org/ftp/snapshots/VM-IMAGES/12.0-STABLE/amd64/Latest/FreeBSD-12.0-STABLE-amd64.qcow2.xz + - unxz FreeBSD-12.0-STABLE-amd64.qcow2.xz + - qemu-system-x86_64 FreeBSD-12.0-STABLE-amd64.qcow2 -daemonize -display none -m 2048 -smp 4 -net user,hostfwd=tcp::10022-:22 -net nic + #- go run build/ci.go install + #- go run build/ci.go test -coverage $TEST_PACKAGES # This builder does the Ubuntu PPA upload - stage: build