debian-forge-composer/.travis.yml
Tom Gundersen 3adcac0123 test/run: merge boot and non-boot test handling
We can now select specific cases, but whether or not to check image-info
or boot the image is determined purely by the contents of the json test
case.

We still run the tests as two travis workers just to avoid the timeout,
this should clearly be reworked.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2019-12-10 02:47:35 +01:00

31 lines
1.2 KiB
YAML

dist: bionic
addons:
apt:
packages:
- systemd-container
- qemu-utils
- yum
- gnupg2
matrix:
include:
- name: unit-tests
language: go
go: 1.12.x
env: GO111MODULE=on # needed even for Go 1.12
script: go test -v ./...
- name: image-test-empty-blueprint
language: python
python: 3.7
before_install: sudo apt-get install -y qemu-kvm genisoimage
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" "OSBUILD_TEST_BUILD_ENV=test/f27-build-from-ubuntu1804.json" test/run --cases test/cases/*_empty_blueprint.json
- name: image-test-local-boot
language: python
python: 3.7
before_install: sudo apt-get install -y qemu-kvm genisoimage
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" "OSBUILD_TEST_BUILD_ENV=test/f27-build-from-ubuntu1804.json" test/run --cases test/cases/*_local_boot.json