mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 13:05:45 +00:00
build: Do cargo tests, unit tests and OpenAPI check on master
Rather than on the CI nodes. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a5b053f81d
commit
6e6eb5b55e
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
@ -18,6 +18,26 @@ pipeline{
|
|||||||
cancelPreviousBuilds()
|
cancelPreviousBuilds()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage ('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Run Cargo tests') {
|
||||||
|
steps {
|
||||||
|
sh "scripts/dev_cli.sh tests --cargo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Run unit tests') {
|
||||||
|
steps {
|
||||||
|
sh "scripts/dev_cli.sh tests --unit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Run OpenAPI tests') {
|
||||||
|
steps {
|
||||||
|
sh "scripts/run_openapi_tests.sh"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Worker build') {
|
stage ('Worker build') {
|
||||||
@ -35,7 +55,6 @@ pipeline{
|
|||||||
steps {
|
steps {
|
||||||
sh "sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq build-essential mtools libssl-dev pkg-config"
|
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 libcap-ng-dev socat"
|
sh "sudo apt-get install -yq flex bison libelf-dev qemu-utils qemu-system libglib2.0-dev libpixman-1-dev libseccomp-dev libcap-ng-dev socat"
|
||||||
sh "sudo snap install docker"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Install Rust') {
|
stage ('Install Rust') {
|
||||||
@ -43,21 +62,6 @@ pipeline{
|
|||||||
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Run Cargo tests') {
|
|
||||||
steps {
|
|
||||||
sh "scripts/run_cargo_tests.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Run OpenAPI tests') {
|
|
||||||
steps {
|
|
||||||
sh "scripts/run_openapi_tests.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Run unit tests') {
|
|
||||||
steps {
|
|
||||||
sh "scripts/run_unit_tests.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Run integration tests') {
|
stage ('Run integration tests') {
|
||||||
steps {
|
steps {
|
||||||
sh "sudo mount -t tmpfs tmpfs /tmp"
|
sh "sudo mount -t tmpfs tmpfs /tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user