test: add yamllint

This commit is contained in:
Adrien Waksberg 2018-11-30 18:59:40 +01:00
parent 1f272190fb
commit 93a231147e
12 changed files with 26 additions and 2 deletions

View file

@ -1,3 +1,4 @@
---
driver:
name: docker_cli
@ -16,7 +17,7 @@ provisioner:
platforms:
- name: debian-9
driver_config:
image: nishiki/debian9:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.6' %>
image: "nishiki/debian9:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.6' %>"
command: /bin/systemd
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

View file

@ -1,4 +1,4 @@
---
AllCops:
Exclude:
- db/**/*

View file

@ -1,3 +1,4 @@
---
sudo: required
language: ruby
@ -12,6 +13,7 @@ services:
before_install:
- bundle install
- sudo pip install --upgrade pip
- sudo pip install yamllint
- sudo pip install ansible-lint
- git clone https://github.com/ansible/galaxy-lint-rules.git
@ -20,6 +22,7 @@ script:
- kitchen conv phpfpm-debian-9 | grep changed=0
- kitchen verify phpfpm-debian-9
- ansible-lint -r galaxy-lint-rules/rules .
- yamllint .
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

12
.yamllint Normal file
View file

@ -0,0 +1,12 @@
---
extends: default
ignore: |
.kitchen/*
vendor/
rules:
line-length:
max: 120
level: warning
truthy: false

View file

@ -5,6 +5,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
- test: add ansible-lint
- test: add yamllint
## v1.1.0 (2018-09-30)
- feat: set attributes on homes directories

View file

@ -1,3 +1,4 @@
---
phpfpm_version: 7.0
phpfpm_dir: /etc/php/{{ phpfpm_version }}/fpm
phpfpm_dir_log: /var/log/phpfpm

View file

@ -1,3 +1,4 @@
---
- name: reload php-fpm
systemd:
name: 'php{{ phpfpm_version }}-fpm'

View file

@ -1,3 +1,4 @@
---
galaxy_info:
role_name: phpfpm
author: Adrien Waksberg

View file

@ -1,3 +1,4 @@
---
- name: install php-fpm package
package:
name: 'php{{ phpfpm_version }}-fpm'

View file

@ -1,3 +1,4 @@
---
- import_tasks: base.yml
tags: phpfpm

View file

@ -1,3 +1,4 @@
---
- name: check if pools log files exist
stat:
path: '{{ phpfpm_dir_log }}/{{ item[0].name }}.{{ item[1] }}'

View file

@ -1,3 +1,4 @@
---
- hosts: localhost
connection: local
vars: