feat: add testing stage
This commit is contained in:
parent
614047c3a7
commit
a6424fbf97
2 changed files with 22 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ stages:
|
|||
# deployment
|
||||
- "gitleaks"
|
||||
- "linting"
|
||||
- "testing"
|
||||
- "deployment"
|
||||
|
||||
|
||||
|
|
@ -13,8 +14,9 @@ stages:
|
|||
include:
|
||||
|
||||
# deployment
|
||||
- local: ".gitlab/gitleaks.yaml"
|
||||
- local: ".gitlab/deployment.yaml"
|
||||
- local: ".gitlab/gitleaks.yaml"
|
||||
- local: ".gitlab/testing.yaml"
|
||||
|
||||
# linting
|
||||
- component: "$CI_SERVER_FQDN/components/ansible/linting@v2.0.1"
|
||||
|
|
|
|||
19
.gitlab/testing.yaml
Normal file
19
.gitlab/testing.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
stages:
|
||||
- "test"
|
||||
|
||||
variables:
|
||||
DOCKER_DRIVER: "overlay2"
|
||||
|
||||
molecule:
|
||||
stage: "test"
|
||||
image: "cr.simoncor.net/siempie/molecule-ci:v25.07.18"
|
||||
services:
|
||||
- "docker:dind"
|
||||
variables:
|
||||
DOCKER_HOST: "tcp://docker:2375/"
|
||||
ANSIBLE_FORCE_COLOR: "true"
|
||||
PY_COLORS: "1"
|
||||
script:
|
||||
- "molecule test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue