summaryrefslogtreecommitdiffstats
path: root/ansible_collections/hetzner/hcloud/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/hetzner/hcloud/.gitlab-ci.yml')
-rw-r--r--ansible_collections/hetzner/hcloud/.gitlab-ci.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/ansible_collections/hetzner/hcloud/.gitlab-ci.yml b/ansible_collections/hetzner/hcloud/.gitlab-ci.yml
new file mode 100644
index 000000000..7748f7237
--- /dev/null
+++ b/ansible_collections/hetzner/hcloud/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+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"]
+ 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}