2019-05-23 15:45:13 +00:00
|
|
|
stage ("Builds") {
|
|
|
|
node ('bionic') {
|
|
|
|
stage ('Checkout') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
stage ('Install system packages') {
|
2019-06-17 13:36:51 +00:00
|
|
|
sh "sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq build-essential mtools libssl-dev pkg-config"
|
2019-09-06 21:59:08 +00: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 15:45:13 +00:00
|
|
|
}
|
|
|
|
stage ('Install Rust') {
|
|
|
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
|
|
|
}
|
2019-07-16 09:54:33 +00:00
|
|
|
stage ('Run unit tests') {
|
|
|
|
sh "scripts/run_unit_tests.sh"
|
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
stage ('Run integration tests') {
|
2019-08-16 14:11:47 +00:00
|
|
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
2019-05-23 15:45:13 +00:00
|
|
|
sh "scripts/run_integration_tests.sh"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|