Skip to content
Snippets Groups Projects
Commit a5775a9d authored by Adrian K.'s avatar Adrian K.
Browse files

Add linting CI

parent 9dbce5db
No related branches found
No related tags found
1 merge request!2Add ansible-lint and fix all warnings and errors
--- ---
stages: stages:
- linting - linting
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache: cache:
paths: paths:
- .cache - .cache
ansible-lint: ansible-lint:
stage: linting stage: linting
image: registry.gitlab.com/pipeline-components/ansible-lint:latest image:
before_script: name: registry.gitlab.fachschaften.org/fsi-ansible/ci-docker-image:latest
- pip3 install yamllint entrypoint: [""]
script: script:
- ansible-lint . - ansible-lint -v --offline
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment