ansible-collection-hetzner-.../.gitlab-ci.yml
Julian Tölle 24c1af2b40
ci: add tests for ansible 2.15 (#213)
- Add tests for Ansible 2.15
- Add sanity ignore file for 2.16, as thats used by devel now

Related to https://github.com/ansible-collections/news-for-maintainers/issues/41
2023-05-12 13:30:30 +02:00

34 lines
722 B
YAML

stages:
- sanity
- integration
variables:
PYTHON_VERSION: "3.9"
default:
image: python:$PYTHON_VERSION
sanity:
stage: sanity
allow_failure: true
except:
- tags
parallel:
matrix:
- ANSIBLE_VERSION: ["devel", "2.12", "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}