From 50134969b9e0c17d760aa4a3d500cb588fcb2351 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 29 Apr 2020 13:31:56 +0200 Subject: [PATCH] Jenkins: Run musl unit and integration tests on master branch And use a bumped up container image for that. Signed-off-by: Samuel Ortiz Signed-off-by: Rob Bradford --- Jenkinsfile | 12 ++++++++++++ scripts/dev_cli.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ddcdc4897..d4cbedbd3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -65,6 +65,18 @@ pipeline{ sh "scripts/dev_cli.sh tests --integration" } } + stage ('Run unit tests for musl') { + when { branch 'master' } + steps { + sh "scripts/dev_cli.sh tests --unit --libc musl" + } + } + stage ('Run integration tests for musl') { + when { branch 'master' } + steps { + sh "scripts/dev_cli.sh tests --integration --libc musl" + } + } } } } diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index 6e474d8b6..fc8e5afc7 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -7,7 +7,7 @@ CLI_NAME="Cloud Hypervisor" CTR_IMAGE_TAG="cloudhypervisor/dev" -CTR_IMAGE_VERSION="v1" +CTR_IMAGE_VERSION="v2" CTR_IMAGE="${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}" DOCKER_RUNTIME="docker"