debian-forge-composer/.travis.yml
Lars Karlitski e7ae3b4c47 test: move image-info tests to test/
These tests (will) test more than just image-info: they'll take a
blueprint, verify that `osbuild-pipeline` generates the correct
pipeline, run osbuild with that pipeline and verify that the resulting
image has the expected image-info output.

This change only includes the latter half (i.e., only moves the already
existing tests).

Also drop python's unittest. It was hard to control output (important
for quickly spotting failures and to make travis happy). This introduces
test/run, which runs all test cases in test/cases or the ones given on
the command line.

When a failure occurs, it prints a diff of the actual and the expected
image info.
2019-10-30 01:25:44 +01:00

22 lines
600 B
YAML

dist: bionic
addons:
apt:
packages:
- systemd-container
- qemu-utils
- yum
- gnupg2
matrix:
include:
- language: go
go: 1.12.x
env: GO111MODULE=on # needed even for Go 1.12
script: go test -v ./...
- language: python
python: 3.7
env: PYTHONUNBUFFERED=1
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" "OSBUILD_TEST_BUILD_PIPELINE=test/build-from-yum.json" test/run