diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91ada9f..7748f72 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,171 +2,33 @@ stages: - sanity - integration -ansible-devel-1/4: +variables: + PYTHON_VERSION: "3.9" + +default: + image: python:$PYTHON_VERSION + +sanity: stage: sanity - image: python:3.6-buster allow_failure: true except: - tags + parallel: + matrix: + - ANSIBLE_VERSION: ["devel", "2.12", "2.13", "2.14"] + GROUP: [1] script: - - bash tests/utils/gitlab/gitlab.sh devel/sanity/1 - tags: - - hc-bladerunner + - bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/sanity/${GROUP} -ansible-devel-2/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh devel/sanity/2 - tags: - - hc-bladerunner - -ansible-devel-3/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh devel/sanity/3 - tags: - - hc-bladerunner - -ansible-devel-4/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh devel/sanity/4 - tags: - - hc-bladerunner - -ansible-210-1/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.10/sanity/1 - tags: - - hc-bladerunner - -ansible-210-2/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.10/sanity/2 - tags: - - hc-bladerunner - -ansible-210-3/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.10/sanity/3 - tags: - - hc-bladerunner - -ansible-210-4/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.10/sanity/4 - tags: - - hc-bladerunner - -ansible-29-1/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.9/sanity/1 - tags: - - hc-bladerunner - -ansible-29-2/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.9/sanity/2 - tags: - - hc-bladerunner - -ansible-29-3/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.9/sanity/3 - tags: - - hc-bladerunner - -ansible-29-4/4: - stage: sanity - image: python:3.6-buster - allow_failure: true - except: - - tags - script: - - bash tests/utils/gitlab/gitlab.sh 2.9/sanity/4 - tags: - - hc-bladerunner - -ansible-devel-1/3: +integration: stage: integration - image: python:3.6-buster except: - tags + parallel: + matrix: + - ANSIBLE_VERSION: ["devel"] + GROUP: [1, 2, 3] script: - echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt" - - echo "py38-$CI_JOB_ID" >> "$(pwd)/prefix.txt" - - bash tests/utils/gitlab/gitlab.sh devel/hcloud/3.6/1 - tags: - - hc-bladerunner - - -ansible-devel-2/3: - stage: integration - image: python:3.6-buster - except: - - tags - script: - - echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt" - - echo "py39-$CI_JOB_ID" >> "$(pwd)/prefix.txt" - - bash tests/utils/gitlab/gitlab.sh devel/hcloud/3.6/2 - tags: - - hc-bladerunner - -ansible-devel-3/3: - stage: integration - image: python:3.6-buster - except: - - tags - script: - - echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt" - - echo "py39-$CI_JOB_ID" >> "$(pwd)/prefix.txt" - - bash tests/utils/gitlab/gitlab.sh devel/hcloud/3.6/3 - tags: - - hc-bladerunner + - echo "$CI_JOB_ID" >> "$(pwd)/prefix.txt" + - bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/hcloud/${PYTHON_VERSION}/${GROUP}