mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 01:45:09 +00:00
22 lines
374 B
Bash
Executable file
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
|
|
}
|
|
|
|
"$@"
|