mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
492ab7a1a8
On the Jenkins build slaves disk I/O is a bottlneck so make /tmp a tmpfs which removes I/O issues when running lots of VMs at the same time. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
25 lines
668 B
Groovy
25 lines
668 B
Groovy
stage ("Builds") {
|
|
node ('bionic') {
|
|
stage ('Checkout') {
|
|
checkout scm
|
|
}
|
|
stage ('Install system packages') {
|
|
sh "sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq build-essential mtools libssl-dev pkg-config"
|
|
sh "sudo apt-get install -yq flex bison libelf-dev qemu-utils"
|
|
}
|
|
stage ('Install Rust') {
|
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
|
}
|
|
stage ('Run unit tests') {
|
|
sh "sudo chmod a+rw /dev/kvm"
|
|
sh "scripts/run_unit_tests.sh"
|
|
}
|
|
stage ('Run integration tests') {
|
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
|
sh "sudo chmod a+rw /dev/kvm"
|
|
sh "scripts/run_integration_tests.sh"
|
|
}
|
|
}
|
|
}
|
|
|