You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/utils/shippable
Adrien Vergé 527d8307c1 Lint YAML files under test/
This commit extends YAML linting by enabling standard rules from the
`yamllint` tool [1]. Since syntax errors and key duplicates are already
checked since 4d48711, this change only adds detection for cosmetic
problems. It also narrows checks to the test/ dir only.

The main goal is to prevent future problems to enter the code base
without being noticed. While it would be a huge effort to be PEP8
compliant, it is relatively easy to have correct YAML style *now* and
prevent future errors by enabling linting.

Note: for those (like me) caring about code attribution: use `git blame
-w` to ignore whitespace-only changes.

Note: I disabled some linting checks (such as indentation), they can be
enforced in the future if needed. Similarly, current checks can also be
disabled. See the `.yamllint` file.

[1]: https://yamllint.readthedocs.io/
8 years ago
..
modules Fix role path for generate-tests. 8 years ago
ansible-core-ci Disable expect continue in ansible-core-ci. (#17737) 8 years ago
ci.sh Update how shippable scripts are called. 9 years ago
code-smell-requirements.txt Unpin yamllint now that version 1.3.2 is out. (#16479) 9 years ago
code-smell.sh Lint YAML files under test/ 8 years ago
download-logs Update log url for Shippable download-logs script. 8 years ago
integration-requirements.txt Put integration.sh pip reqs in separate file. (#17338) 8 years ago
integration.sh Disable privileged mode on Shippable. (#17844) 8 years ago
python3-test-tag-blacklist.txt Enable the git test on py3 8 years ago
python3-test-target-blacklist.txt Fix ansible-pull on python3 8 years ago
remote-integration.sh Run test_template tests on OS X. (#17791) 8 years ago
remote-requirements.txt fix remote shippable target failures (#17287) 8 years ago
remote.sh fix remote shippable target failures (#17287) 8 years ago
sanity-requirements.txt Install dependencies for validate-modules (#18028) 8 years ago
sanity.sh Move ansible ad-hoc tests to integration targets. 8 years ago