network/semaphore
Lars Karlitski 69134b7cb7 Add support for linux-system-api test harness
Also add a simple test that runs the role without any parameters.
2017-04-28 17:33:25 +02:00

22 lines
374 B
Bash
Executable file

#!/bin/bash
# Run integration tests on semaphoreci.com.
set -xeuf -o pipefail
prepare() {
# install qemu because its post install script sets up /dev/kvm
sudo apt-get update
sudo apt-get install -q -y qemu-system-x86
sudo chmod a+rw /dev/kvm
}
run() {
docker-cache restore
CACHEDIR=$SEMAPHORE_CACHE_DIR ./run-tests.sh | tee
docker-cache snapshot
}
"$@"