2019-11-22 13:50:19 +00:00
|
|
|
pipeline{
|
|
|
|
agent { node { label 'bionic' } }
|
2019-11-22 13:51:13 +00:00
|
|
|
options {
|
|
|
|
timeout(time: 1, unit: 'HOURS')
|
|
|
|
}
|
2019-11-22 13:50:19 +00:00
|
|
|
stages {
|
2019-05-23 15:45:13 +00:00
|
|
|
stage ('Checkout') {
|
2019-11-22 13:50:19 +00:00
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
}
|
|
|
|
stage ('Install system packages') {
|
2019-11-22 13:50:19 +00:00
|
|
|
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"
|
2019-12-11 07:49:06 +00:00
|
|
|
sh "sudo snap install docker"
|
2019-11-22 13:50:19 +00:00
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
}
|
|
|
|
stage ('Install Rust') {
|
2019-11-22 13:50:19 +00:00
|
|
|
steps {
|
|
|
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
}
|
2019-12-11 07:38:46 +00:00
|
|
|
stage ('Run Cargo tests') {
|
|
|
|
steps {
|
|
|
|
sh "scripts/run_cargo_tests.sh"
|
|
|
|
}
|
|
|
|
}
|
2019-12-11 07:49:06 +00:00
|
|
|
stage ('Run OpenAPI tests') {
|
|
|
|
steps {
|
|
|
|
sh "scripts/run_openapi_tests.sh"
|
|
|
|
}
|
|
|
|
}
|
2019-07-16 09:54:33 +00:00
|
|
|
stage ('Run unit tests') {
|
2019-11-22 13:50:19 +00:00
|
|
|
steps {
|
|
|
|
sh "scripts/run_unit_tests.sh"
|
|
|
|
}
|
2019-07-16 09:54:33 +00:00
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
stage ('Run integration tests') {
|
2019-11-22 13:50:19 +00:00
|
|
|
steps {
|
|
|
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
|
|
|
sh "scripts/run_integration_tests.sh"
|
|
|
|
}
|
2019-05-23 15:45:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|