test: add yamllint
This commit is contained in:
parent
1f272190fb
commit
93a231147e
12 changed files with 26 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker_cli
|
name: docker_cli
|
||||||
|
|
||||||
|
@ -16,7 +17,7 @@ provisioner:
|
||||||
platforms:
|
platforms:
|
||||||
- name: debian-9
|
- name: debian-9
|
||||||
driver_config:
|
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
|
command: /bin/systemd
|
||||||
volume:
|
volume:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
---
|
||||||
AllCops:
|
AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
- db/**/*
|
- db/**/*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
sudo: required
|
sudo: required
|
||||||
language: ruby
|
language: ruby
|
||||||
|
|
||||||
|
@ -12,6 +13,7 @@ services:
|
||||||
before_install:
|
before_install:
|
||||||
- bundle install
|
- bundle install
|
||||||
- sudo pip install --upgrade pip
|
- sudo pip install --upgrade pip
|
||||||
|
- sudo pip install yamllint
|
||||||
- sudo pip install ansible-lint
|
- sudo pip install ansible-lint
|
||||||
- git clone https://github.com/ansible/galaxy-lint-rules.git
|
- git clone https://github.com/ansible/galaxy-lint-rules.git
|
||||||
|
|
||||||
|
@ -20,6 +22,7 @@ script:
|
||||||
- kitchen conv phpfpm-debian-9 | grep changed=0
|
- kitchen conv phpfpm-debian-9 | grep changed=0
|
||||||
- kitchen verify phpfpm-debian-9
|
- kitchen verify phpfpm-debian-9
|
||||||
- ansible-lint -r galaxy-lint-rules/rules .
|
- ansible-lint -r galaxy-lint-rules/rules .
|
||||||
|
- yamllint .
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
12
.yamllint
Normal file
12
.yamllint
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
ignore: |
|
||||||
|
.kitchen/*
|
||||||
|
vendor/
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length:
|
||||||
|
max: 120
|
||||||
|
level: warning
|
||||||
|
truthy: false
|
|
@ -5,6 +5,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
- test: add ansible-lint
|
- test: add ansible-lint
|
||||||
|
- test: add yamllint
|
||||||
|
|
||||||
## v1.1.0 (2018-09-30)
|
## v1.1.0 (2018-09-30)
|
||||||
- feat: set attributes on homes directories
|
- feat: set attributes on homes directories
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
phpfpm_version: 7.0
|
phpfpm_version: 7.0
|
||||||
phpfpm_dir: /etc/php/{{ phpfpm_version }}/fpm
|
phpfpm_dir: /etc/php/{{ phpfpm_version }}/fpm
|
||||||
phpfpm_dir_log: /var/log/phpfpm
|
phpfpm_dir_log: /var/log/phpfpm
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: reload php-fpm
|
- name: reload php-fpm
|
||||||
systemd:
|
systemd:
|
||||||
name: 'php{{ phpfpm_version }}-fpm'
|
name: 'php{{ phpfpm_version }}-fpm'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
role_name: phpfpm
|
role_name: phpfpm
|
||||||
author: Adrien Waksberg
|
author: Adrien Waksberg
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: install php-fpm package
|
- name: install php-fpm package
|
||||||
package:
|
package:
|
||||||
name: 'php{{ phpfpm_version }}-fpm'
|
name: 'php{{ phpfpm_version }}-fpm'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_tasks: base.yml
|
- import_tasks: base.yml
|
||||||
tags: phpfpm
|
tags: phpfpm
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: check if pools log files exist
|
- name: check if pools log files exist
|
||||||
stat:
|
stat:
|
||||||
path: '{{ phpfpm_dir_log }}/{{ item[0].name }}.{{ item[1] }}'
|
path: '{{ phpfpm_dir_log }}/{{ item[0].name }}.{{ item[1] }}'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
vars:
|
vars:
|
||||||
|
|
Loading…
Reference in a new issue