summaryrefslogtreecommitdiff
path: root/test/utils/shippable/sanity.sh
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2016-09-22 16:34:36 -0700
committerGitHub <noreply@github.com>2016-09-22 16:34:36 -0700
commit8d3119dfe5279926dcd1ce970ad7cdeefe2829c5 (patch)
treede46fad892dab0d73641312163feb500030a8b2d /test/utils/shippable/sanity.sh
parentab1ac22187fc047ad49de7458e3f2ce4258dca1c (diff)
downloadansible-modules-core-8d3119dfe5279926dcd1ce970ad7cdeefe2829c5.tar.gz
Add shellcheck to sanity checks. (#4976)
Also disable deprecation warnings during module validation.
Diffstat (limited to 'test/utils/shippable/sanity.sh')
-rwxr-xr-xtest/utils/shippable/sanity.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/utils/shippable/sanity.sh b/test/utils/shippable/sanity.sh
index 1c0e2451..d9234cf0 100755
--- a/test/utils/shippable/sanity.sh
+++ b/test/utils/shippable/sanity.sh
@@ -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