2023-07-11 10:47:48 +00:00
|
|
|
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
|
|
|
|
|
2023-02-08 12:49:55 +00:00
|
|
|
variables:
|
2023-07-11 10:47:48 +00:00
|
|
|
PYTHON_VERSION: "3.10"
|
2020-05-06 05:44:05 +00:00
|
|
|
|
2023-02-08 12:49:55 +00:00
|
|
|
default:
|
|
|
|
image: python:$PYTHON_VERSION
|
2020-05-06 05:44:05 +00:00
|
|
|
|
2023-08-25 14:12:47 +00:00
|
|
|
pre-commit:
|
|
|
|
extends: [.pre-commit]
|
|
|
|
|
2023-02-08 12:49:55 +00:00
|
|
|
sanity:
|
2020-05-06 05:44:05 +00:00
|
|
|
stage: sanity
|
2020-06-29 13:41:30 +00:00
|
|
|
allow_failure: true
|
2020-05-06 05:44:05 +00:00
|
|
|
except:
|
|
|
|
- tags
|
2023-02-08 12:49:55 +00:00
|
|
|
parallel:
|
|
|
|
matrix:
|
2023-07-05 07:11:47 +00:00
|
|
|
- ANSIBLE_VERSION: ["devel", "2.13", "2.14", "2.15"]
|
2023-02-08 12:49:55 +00:00
|
|
|
GROUP: [1]
|
2020-05-06 05:44:05 +00:00
|
|
|
script:
|
2023-02-08 12:49:55 +00:00
|
|
|
- bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/sanity/${GROUP}
|
2020-11-27 11:25:06 +00:00
|
|
|
|
2023-02-08 12:49:55 +00:00
|
|
|
integration:
|
2020-11-27 11:25:06 +00:00
|
|
|
stage: integration
|
|
|
|
except:
|
|
|
|
- tags
|
2023-02-08 12:49:55 +00:00
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- ANSIBLE_VERSION: ["devel"]
|
|
|
|
GROUP: [1, 2, 3]
|
2020-11-27 11:25:06 +00:00
|
|
|
script:
|
|
|
|
- echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt"
|
2023-02-08 12:49:55 +00:00
|
|
|
- echo "$CI_JOB_ID" >> "$(pwd)/prefix.txt"
|
|
|
|
- bash tests/utils/gitlab/gitlab.sh ${ANSIBLE_VERSION}/hcloud/${PYTHON_VERSION}/${GROUP}
|