-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
51 lines (48 loc) · 1.42 KB
/
.gitlab-ci.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
variables:
DEBIAN_FRONTEND: noninteractive
molecule:
image: $python
script:
- apt-get update -qq
- apt-get -y -qq install yamllint docker.io
- pip install --no-cache-dir tox
- if [ -f tox.ini ] ; then tox ; fi
- if [ ! -f tox.ini ] ; then pip install -r requirements.yml ; pip install ansible-lint ansible-core ; molecule test ; fi
rules:
- if: $CI_COMMIT_REF_NAME == "master"
parallel:
matrix:
- image: "enterpriselinux"
tag: "latest"
python: ['python:3.9', 'python:3.10']
- image: "debian"
tag: "latest"
python: ['python:3.9', 'python:3.10']
- image: "debian"
tag: "bullseye"
python: ['python:3.9', 'python:3.10']
- image: "fedora"
tag: "39"
python: ['python:3.9', 'python:3.10']
- image: "fedora"
tag: "latest"
python: ['python:3.9', 'python:3.10']
- image: "fedora"
tag: "rawhide"
python: ['python:3.9', 'python:3.10']
- image: "ubuntu"
tag: "latest"
python: ['python:3.9', 'python:3.10']
- image: "ubuntu"
tag: "jammy"
python: ['python:3.9', 'python:3.10']
- image: "ubuntu"
tag: "focal"
python: ['python:3.9', 'python:3.10']
galaxy:
script:
- apk add ansible-core
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME}
rules:
- if: $CI_COMMIT_TAG != null