30 lines
553 B
YAML
30 lines
553 B
YAML
---
|
|
|
|
variables:
|
|
DEBIAN_FRONTEND: "noninteractive"
|
|
DOCKER_HOST: "tcp://docker:2375"
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
services:
|
|
- "docker:dind"
|
|
|
|
molecule:
|
|
stage: "testing"
|
|
image: "docker:latest"
|
|
script:
|
|
|
|
# install python, pip and git
|
|
- "apk add --no-cache \
|
|
python3 \
|
|
py3-pip \
|
|
git"
|
|
|
|
# pip install ansible and molecule
|
|
- "pip3 install --break-system-packages --no-cache-dir \
|
|
ansible-core \
|
|
ansible-lint \
|
|
molecule \
|
|
molecule-plugins[docker]"
|
|
|
|
# run molecule
|
|
- "molecule test"
|