feat: use testing component
This commit is contained in:
parent
1f8f17608d
commit
a5ed9c9e47
2 changed files with 2 additions and 32 deletions
|
|
@ -16,9 +16,9 @@ include:
|
|||
# deployment
|
||||
- local: ".gitlab/deployment.yaml"
|
||||
- local: ".gitlab/gitleaks.yaml"
|
||||
- local: ".gitlab/testing.yaml"
|
||||
|
||||
# linting
|
||||
- component: "$CI_SERVER_FQDN/components/ansible/linting@v2.0.1"
|
||||
- component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/ansible/testing@v3.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
|
||||
- component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
---
|
||||
|
||||
variables:
|
||||
DEBIAN_FRONTEND: "noninteractive"
|
||||
DOCKER_HOST: "tcp://docker:2375"
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
services:
|
||||
- "docker:dind"
|
||||
|
||||
molecule:
|
||||
stage: "testing"
|
||||
image: "docker:dind"
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue