ansible-collection-hetzner-.../.gitlab-ci.yml
Jonas L 3da91df8c3
feat: drop support for ansible-core 2.12 (#240)
* feat: drop support for ansible-core 2.12

ansible-core 2.12 is EOL since the 22 May 2023.

https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#support-life

* dropping ansible-core versions is a breaking change

* rename changelog fragment
2023-07-05 09:11:47 +02:00

45 lines
920 B
YAML

stages:
- lint
- sanity
- integration
variables:
PYTHON_VERSION: "3.9"
default:
image: python:$PYTHON_VERSION
pre-commit:
stage: lint
image: python:3.11-alpine
before_script:
- apk add build-base git
- pip install pre-commit
script:
- pre-commit run --all-files --show-diff-on-failure
sanity:
stage: sanity
allow_failure: true
except:
- tags
parallel:
matrix:
- ANSIBLE_VERSION: ["devel", "2.13", "2.14", "2.15"]
GROUP: [1]
script:
- bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/sanity/${GROUP}
integration:
stage: integration
except:
- tags
parallel:
matrix:
- ANSIBLE_VERSION: ["devel"]
GROUP: [1, 2, 3]
script:
- echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt"
- echo "$CI_JOB_ID" >> "$(pwd)/prefix.txt"
- bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/hcloud/${PYTHON_VERSION}/${GROUP}