mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add shellcheck to sanity checks. (#3013)
Also disable deprecation warnings during module validation.
This commit is contained in:
parent
5abc8a1927
commit
b2b3d99839
1 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,10 @@ cd "${source_root}"
|
|||
if [ "${install_deps}" != "" ]; then
|
||||
add-apt-repository ppa:fkrull/deadsnakes && apt-get update -qq && apt-get install python2.4 -qq
|
||||
|
||||
apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
||||
apt-get update -qq
|
||||
apt-get install shellcheck
|
||||
|
||||
pip install git+https://github.com/ansible/ansible.git@devel#egg=ansible
|
||||
pip install git+https://github.com/sivel/ansible-testing.git#egg=ansible_testing
|
||||
fi
|
||||
|
@ -19,4 +23,8 @@ python2.6 -m compileall -fq .
|
|||
python2.7 -m compileall -fq .
|
||||
python3.5 -m compileall -fq . -x "($(printf %s "$(< "test/utils/shippable/sanity-skip-python3.txt"))" | tr '\n' '|')"
|
||||
|
||||
ansible-validate-modules --exclude '/utilities/|/shippable(/|$)' .
|
||||
ANSIBLE_DEPRECATION_WARNINGS=false \
|
||||
ansible-validate-modules --exclude '/utilities/|/shippable(/|$)' .
|
||||
|
||||
shellcheck \
|
||||
test/utils/shippable/*.sh
|
||||
|
|
Loading…
Reference in a new issue