1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix YAML source and check it on Shippable (#15678)

Fix YAML source and check it on Shippable
This commit is contained in:
Adrien Vergé 2016-06-04 19:58:17 +02:00 committed by Matt Clay
parent 4fe8fe303f
commit 4d48711242
5 changed files with 30 additions and 4 deletions

22
.yamllint Normal file
View file

@ -0,0 +1,22 @@
extends: default
# Disable all cosmetic rules
# (see https://github.com/ansible/ansible/pull/15470#issuecomment-214437876)
# Only keep 'key-duplicates' and 'new-lines: {type: unix}' checks enabled.
rules:
braces: disable
brackets: disable
colons: disable
commas: disable
comments: disable
comments-indentation: disable
document-start: disable
empty-lines: disable
hyphens: disable
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines: {type: unix}
trailing-spaces: disable

View file

@ -2,7 +2,7 @@ language: python
env:
matrix:
- TEST=code-smell
- TEST=code-smell INSTALL_DEPS=1
matrix:
include:

View file

@ -192,7 +192,6 @@
volume: 3
wait: true
wait_timeout: "{{ rackspace_wait_timeout }}"
wait_timeout: 600
register: rax_cdb
- name: Validate rax_cdb resize volume 2
@ -251,7 +250,6 @@
flavor: 2
wait: true
wait_timeout: "{{ rackspace_wait_timeout }}"
wait_timeout: 600
register: rax_cdb
- name: Validate rax_cdb resize flavor 2

View file

@ -25,7 +25,6 @@
- '"val1" in test_env2.stdout_lines'
- hosts: testhost
tasks:
vars:
- test1:
key1: val1

View file

@ -2,8 +2,15 @@
source_root=$(python -c "from os import path; print(path.abspath(path.join(path.dirname('$0'), '../../..')))")
install_deps="${INSTALL_DEPS:-}"
cd "${source_root}"
if [ "${install_deps}" != "" ]; then
pip install yamllint
fi
yamllint .
test/code-smell/replace-urlopen.sh .
test/code-smell/use-compat-six.sh lib
test/code-smell/boilerplate.sh