2019-05-23 16:45:13 +01:00
|
|
|
stage ("Builds") {
|
|
|
|
node ('bionic') {
|
|
|
|
stage ('Checkout') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
stage ('Install system packages') {
|
2019-06-17 06:36:51 -07:00
|
|
|
sh "sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq build-essential mtools libssl-dev pkg-config"
|
2019-09-06 14:59:08 -07:00
|
|
|
sh "sudo apt-get install -yq flex bison libelf-dev qemu-utils qemu-system libglib2.0-dev libpixman-1-dev libseccomp-dev socat"
|
2019-05-23 16:45:13 +01:00
|
|
|
}
|
|
|
|
stage ('Install Rust') {
|
|
|
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
|
|
|
}
|
2019-07-16 10:54:33 +01:00
|
|
|
stage ('Run unit tests') {
|
|
|
|
sh "scripts/run_unit_tests.sh"
|
|
|
|
}
|
2019-05-23 16:45:13 +01:00
|
|
|
stage ('Run integration tests') {
|
2019-08-16 15:11:47 +01:00
|
|
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
2019-05-23 16:45:13 +01:00
|
|
|
sh "scripts/run_integration_tests.sh"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|