Commit 0fa948a0 authored by ale's avatar ale
Browse files

Run CI tests sequentially

parent bb1e69eb
Pipeline #15239 failed
image: registry.git.autistici.org/ai3/docker/float-runner:master
# Stage the tests sequentially to avoid overloading the test VM server.
stages:
- docker_build
- test
- test_mail
- test_noblogs
- test_web
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
......@@ -18,12 +21,12 @@ docker_build_and_release_tests:
- cd test && docker build --build-arg ci_token=$CI_JOB_TOKEN --pull -t $IMAGE_TAG .
- docker tag $IMAGE_TAG $CI_REGISTRY_IMAGE:integration-test
- docker push $CI_REGISTRY_IMAGE:integration-test
only:
changes:
- test/**/*
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- test/**/*
.base_test_template: &base_test
stage: test
image: registry.git.autistici.org/ai3/docker/float-runner:bullseye
before_script:
- mkdir -p $BUILD_DIR
......@@ -46,21 +49,24 @@ docker_build_and_release_tests:
test_mail:
<<: *base_test
stage: test_mail
variables:
TEST_NAME: "mail"
test_noblogs:
<<: *base_test
stage: test_noblogs
variables:
TEST_NAME: "noblogs"
only:
rules:
changes:
- roles/noblogs/**/*
test_web:
<<: *base_test
stage: test_web
variables:
TEST_NAME: "web"
only:
rules:
changes:
- roles/web-users/**/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment