Commit 17dc770a authored by Chris Croome's avatar Chris Croome

added molecule tests back

parent 1ae9dfd6
Pipeline #12184 passed with stage
in 25 seconds
---
# https://docs.ansible.com/ansible-lint/rules/default_rules.html
skip_list:
# Lines should be no longer than 160 chars
- "204"
# Commands should not change things if nothing needs doing
- "301"
# Git checkouts must contain explicit version
- "401"
# Tasks that run when changed should likely be handlers
- "503"
# Don't compare to literal True/False
- "601"
# Don't compare to empty string
- "602"
# vim: syntax=yaml
...
---
image: registry.git.coop/webarch/containers/images/ansible:0.3
image: registry.git.coop/webarch/containers/images/ansible:0.4
before_script:
- chmod 700 $(pwd)
stages:
- check
ansible-lint:
stage: check
- lint
lint:
stage: lint
script:
- yamllint .
- molecule lint
# vim: syntax=yaml
...
---
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
rules:
braces:
max-spaces-inside: 1
......@@ -8,3 +11,6 @@ rules:
max-spaces-inside: 1
level: error
line-length: disable
comments-indentation: disable
# vim: syntax=yaml
...
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: instance
image: registry.git.coop/webarch/containers/images/ansible:0.3
pre_build_image: true
provisioner:
name: ansible
lint: |
set -e
yamllint -c .yamllint .
ansible-lint -c .ansible-lint.yml .
# vim: syntax=yaml
...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment