Skip to content
Snippets Groups Projects
Commit 078cf0e0 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Update .gitlab-ci.yml file

parent a77d57bf
Branches
Tags
1 merge request!64Add a role to perform checks after base config
Pipeline #85221 canceled
...@@ -6,7 +6,7 @@ variables: ...@@ -6,7 +6,7 @@ variables:
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- setup - setup
- test - linting
- build - build
- publish - publish
...@@ -36,13 +36,20 @@ stages: # List of stages for jobs, and their order of execution ...@@ -36,13 +36,20 @@ stages: # List of stages for jobs, and their order of execution
# only: # only:
# - main # - main
lint-test-job: # This job also runs in the test stage. ansible-lint:
stage: test # It can run at the same time as unit-test-job (in parallel). stage: linting
image: registry.gitlab.com/pipeline-components/ansible-lint:latest
script: script:
- /home/gitlab-runner/.local/bin/ansible-lint --exclude .gitlab-ci.yml - ansible-lint -f codeclimate | python -m json.tool | tee "${CI_PROJECT_DIR}/codeclimate-results.json"
artifacts:
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
reports:
codequality:
- "${CI_PROJECT_DIR}/codeclimate-results.json"
paths:
- "${CI_PROJECT_DIR}/codeclimate-results.json"
tags: tags:
- ansible - docker-executor
- lab
install-dependencies: install-dependencies:
stage: setup stage: setup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment