1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

Add Gitlab-CI (#3)

This commit is contained in:
Lukas Kämmerling 2020-05-06 07:44:05 +02:00 committed by GitHub
parent 363598811e
commit a2d00f8d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 207 additions and 0 deletions

68
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,68 @@
stages:
- sanity
- integration
test:sanity1-devel-py38:
stage: sanity
image: python:3.8-buster
except:
- tags
script:
- bash tests/utils/gitlab/gitlab.sh sanity/1
tags:
- hc-bladerunner
test:sanity2-devel-py38:
stage: sanity
image: python:3.8-buster
except:
- tags
script:
- bash tests/utils/gitlab/gitlab.sh sanity/2
tags:
- hc-bladerunner
test:sanity3-devel-py38:
stage: sanity
image: python:3.8-buster
except:
- tags
script:
- bash tests/utils/gitlab/gitlab.sh sanity/3
tags:
- hc-bladerunner
test:sanity4-devel-py38:
stage: sanity
image: python:3.8-buster
except:
- tags
script:
- bash tests/utils/gitlab/gitlab.sh sanity/4
tags:
- hc-bladerunner
test:integration1-devel-py38:
stage: integration
image: python:3.8-buster
except:
- tags
script:
- echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt"
- echo "py38-$CI_JOB_ID" >> "$(pwd)/prefix.txt"
- bash tests/utils/gitlab/gitlab.sh integration/1
tags:
- hc-bladerunner
test:integration2-devel-py38:
stage: integration
image: python:3.8-buster
except:
- tags
script:
- echo "$HCLOUD_TOKEN" >> "$(pwd)/hcloud_token.txt"
- echo "py39-$CI_JOB_ID" >> "$(pwd)/prefix.txt"
- bash tests/utils/gitlab/gitlab.sh integration/2
tags:
- hc-bladerunner