summaryrefslogtreecommitdiffstats
path: root/ansible_collections/hetzner/hcloud/.gitlab-ci.yml
blob: 7748f723719173c0dde9322657cd9cff71e59531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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}