ansible-collection-hetzner-.../.gitlab-ci.yml

45 lines
844 B
YAML
Raw Normal View History

include:
- project: cloud/integrations/ci
file:
- default.yml
- pre-commit.yml
2020-05-06 05:44:05 +00:00
stages:
2023-08-07 13:56:08 +00:00
- test
2020-05-06 05:44:05 +00:00
- sanity
- integration
variables:
PYTHON_VERSION: "3.10"
2020-05-06 05:44:05 +00:00
default:
image: python:$PYTHON_VERSION
2020-05-06 05:44:05 +00:00
pre-commit:
extends: [.pre-commit]
sanity:
2020-05-06 05:44:05 +00:00
stage: sanity
allow_failure: true
2020-05-06 05:44:05 +00:00
except:
- tags
parallel:
matrix:
- ANSIBLE_VERSION: ["devel", "2.15"]
GROUP: [1]
2020-05-06 05:44:05 +00:00
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}