Commit a5ed9c9e authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: use testing component

parent 1f8f1760
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"

.gitlab/testing.yaml

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
---

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"