.gitlab-ci.yml
· 1.1 KiB · YAML
Неформатований
# See https://gitlab.com/richardskumat/ansible-role-client-debian-role/-/blob/master/.gitlab-ci.yml
image: qwe1/dind-ansible-molecule:latest
variables:
# DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
# https://gitlab.com/gitlab-org/gitlab-ce/issues/64959
# 19.03 had some breaking changes compared to 18.09
DOCKER_TLS_CERTDIR: ""
services:
- docker:dind
stages:
- test
before_script:
- docker info
- ansible --version
- molecule --version
test_d10:
stage: test
tags:
- ansible
variables:
MOLECULE_DISTRO: "geerlingguy/docker-debian10-ansible:testing"
script:
- cd roles/common
- molecule test
# need to setup a Matrix (https://docs.gitlab.com/ee/ci/yaml/#parallel-matrix-jobs)
#test_d8:
# stage: test
# tags:
# - ansible
# variables:
# MOLECULE_DISTRO: "geerlingguy/docker-debian8-ansible:testing"
# script:
# - cd roles/common
# - molecule test
#test_d9:
# stage: test
# tags:
# - ansible
# variables:
# MOLECULE_DISTRO: "geerlingguy/docker-debian9-ansible:testing"
# script:
# - cd roles/common
# - molecule test
| 1 | # See https://gitlab.com/richardskumat/ansible-role-client-debian-role/-/blob/master/.gitlab-ci.yml |
| 2 | image: qwe1/dind-ansible-molecule:latest |
| 3 | variables: |
| 4 | # DOCKER_HOST: tcp://docker:2375/ |
| 5 | DOCKER_DRIVER: overlay2 |
| 6 | # https://gitlab.com/gitlab-org/gitlab-ce/issues/64959 |
| 7 | # 19.03 had some breaking changes compared to 18.09 |
| 8 | DOCKER_TLS_CERTDIR: "" |
| 9 | |
| 10 | services: |
| 11 | - docker:dind |
| 12 | stages: |
| 13 | - test |
| 14 | before_script: |
| 15 | - docker info |
| 16 | - ansible --version |
| 17 | - molecule --version |
| 18 | |
| 19 | test_d10: |
| 20 | stage: test |
| 21 | tags: |
| 22 | - ansible |
| 23 | variables: |
| 24 | MOLECULE_DISTRO: "geerlingguy/docker-debian10-ansible:testing" |
| 25 | script: |
| 26 | - cd roles/common |
| 27 | - molecule test |
| 28 | # need to setup a Matrix (https://docs.gitlab.com/ee/ci/yaml/#parallel-matrix-jobs) |
| 29 | #test_d8: |
| 30 | # stage: test |
| 31 | # tags: |
| 32 | # - ansible |
| 33 | # variables: |
| 34 | # MOLECULE_DISTRO: "geerlingguy/docker-debian8-ansible:testing" |
| 35 | # script: |
| 36 | # - cd roles/common |
| 37 | # - molecule test |
| 38 | #test_d9: |
| 39 | # stage: test |
| 40 | # tags: |
| 41 | # - ansible |
| 42 | # variables: |
| 43 | # MOLECULE_DISTRO: "geerlingguy/docker-debian9-ansible:testing" |
| 44 | # script: |
| 45 | # - cd roles/common |
| 46 | # - molecule test |