mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
d42ef186a1
Because the resources on the amount of worker nodes we can have access to through Travis is limited, we offload the burden of running all tests related to Cargo inside the Azure VM directly. This will have the positive effect of stopping the build very early in case something goes wrong during the Cargo testing. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
41 lines
882 B
Groovy
41 lines
882 B
Groovy
pipeline{
|
|
agent { node { label 'bionic' } }
|
|
options {
|
|
timeout(time: 1, unit: 'HOURS')
|
|
}
|
|
stages {
|
|
stage ('Checkout') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage ('Install system packages') {
|
|
steps {
|
|
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 qemu-system libglib2.0-dev libpixman-1-dev libseccomp-dev socat"
|
|
}
|
|
}
|
|
stage ('Install Rust') {
|
|
steps {
|
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
|
}
|
|
}
|
|
stage ('Run Cargo tests') {
|
|
steps {
|
|
sh "scripts/run_cargo_tests.sh"
|
|
}
|
|
}
|
|
stage ('Run unit tests') {
|
|
steps {
|
|
sh "scripts/run_unit_tests.sh"
|
|
}
|
|
}
|
|
stage ('Run integration tests') {
|
|
steps {
|
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
|
sh "scripts/run_integration_tests.sh"
|
|
}
|
|
}
|
|
}
|
|
}
|