test: add yamllint
This commit is contained in:
parent
d9ac33acc9
commit
6a0d4736ca
3 changed files with 16 additions and 0 deletions
|
@ -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 fail2ban-debian-9 | grep changed=0
|
- kitchen conv fail2ban-debian-9 | grep changed=0
|
||||||
- kitchen verify fail2ban-debian-9
|
- kitchen verify fail2ban-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.0.1 (2018-08-28)
|
## v1.0.1 (2018-08-28)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue