Skip to content
Snippets Groups Projects

Make tests skippable

Merged Daniel Juarez Gonzalez requested to merge make_tests_skippable into master
+ 16
1
@@ -10,6 +10,7 @@ stages:
variables:
OS_TENANT_ID: 8e35e961-f888-4622-bf7d-5fe9eb8cf563
CI_SKIP_TESTS: "false"
.build_image:
stage: build
@@ -62,6 +63,8 @@ variables:
# after_script script must be an array of commands, cannot use code blocks
.vm_details_retrieval: &vm_details_retrieval
after_script:
# Exit immediately if skipping tests
- if [ $CI_SKIP_TESTS = "true" ]; then echo "Skipping tests"; exit 0; fi
- echo "${IMAGECI_PWD}" | kinit ${IMAGECI_USER}@CERN.CH
- export OS_PROJECT_NAME="IT Linux Support - Images"
- export OS_USERNAME=${IMAGECI_USER}
@@ -199,6 +202,12 @@ variables:
extends: .openstack
stage: upstream_functional_test
script:
# Immediately skip test if specified
- |-
if [ $CI_SKIP_TESTS = "true" ]; then
echo "Skipping tests"
exit 0
fi
# Retrieve variables from image upload
- source upload.txt
# Refer to the image in name, but make it a valid hostname
@@ -243,6 +252,12 @@ variables:
extends: .openstack
stage: cern_functional_test
script:
# Immediately skip test if specified
- |-
if [ $CI_SKIP_TESTS = "true" ]; then
echo "Skipping tests"
exit 0
fi
# Retrieve variables from image upload
- source upload.txt
# Refer to the image in name, but make it a valid hostname
@@ -459,4 +474,4 @@ make_cc7_prod:
- upload_cc7_test
- publish_cc7_test
variables:
OS: 7
\ No newline at end of file
OS: 7
Loading