cloud-hypervisor/Jenkinsfile
Rob Bradford ddce3df826 tests: Add basic integration testing
Add basic integration testing of the hypervisor using a cloud-init to
configure the VM at boot and SSH to control it at runtime.

Initial test just boots the VM up checks some basic resources and
reboots. With a second test that calls into the first to check that
subsequent tests work correctly.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-06-06 11:03:13 +01:00

19 lines
410 B
Groovy

stage ("Builds") {
node ('bionic') {
stage ('Checkout') {
checkout scm
}
stage ('Install system packages') {
sh "sudo apt-get -y install build-essential mtools libssl-dev pkg-config"
}
stage ('Install Rust') {
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
}
stage ('Run integration tests') {
sh "sudo chmod a+rw /dev/kvm"
sh "scripts/run_integration_tests.sh"
}
}
}