Role postfix: add molecule tests

parent 35b4d897
......@@ -109,3 +109,17 @@ molecule-role-postgresql:
only:
changes:
- roles/postgresql/**/*
molecule-role-postfix:
stage: tests
tags:
- docker
variables:
DOCKER_HOST: "tcp://docker:2375"
PY_COLORS: 1
script:
- cd roles/postfix/
- molecule test
only:
changes:
- roles/postfix/**/*
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
# NOTE(retr0h): Templates no longer fail this lint rule.
# Uncomment if running old Molecule templates.
# truthy: disable
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: molecule-php-fpm
image: geerlingguy/docker-debian9-ansible:latest
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
options:
skip-tags: molecule-converge-notest
log: true
scenario:
name: default
---
- name: Converge
hosts: all
roles:
- role: php-fpm
tasks:
- include_role:
name: php-fpm
tasks_from: environment-present.yml
vars:
pool: testpool
options:
create_user: true
vars:
fw_allow_http: ['0.0.0.0/0']
dns_resolvers: ['0.0.0.0/0']
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