diff options
author | Matt Clay <matt@mystile.com> | 2016-09-22 16:12:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-22 16:12:10 -0700 |
commit | 40ffd8269d6ae2e71817c14b735a84da2e7dcd02 (patch) | |
tree | 40a1c58b290f7f3aa0b39215318f48438af34be6 | |
parent | 95dd8cc2c7e6a5e20bb96c4eef7565f09668ce4c (diff) | |
download | ansible-40ffd8269d6ae2e71817c14b735a84da2e7dcd02.tar.gz |
Add shellcheck to code-smell checks. (#17715)
-rwxr-xr-x | test/utils/shippable/code-smell.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/utils/shippable/code-smell.sh b/test/utils/shippable/code-smell.sh index 3dcaafc174..bcf3bf1ace 100755 --- a/test/utils/shippable/code-smell.sh +++ b/test/utils/shippable/code-smell.sh @@ -7,6 +7,10 @@ install_deps="${INSTALL_DEPS:-}" cd "${source_root}" if [ "${install_deps}" != "" ]; then + apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe' + apt-get update -qq + apt-get install shellcheck + pip install -r "${source_root}/test/utils/shippable/code-smell-requirements.txt" --upgrade pip list fi @@ -16,3 +20,6 @@ test/code-smell/replace-urlopen.sh . test/code-smell/use-compat-six.sh lib test/code-smell/boilerplate.sh test/code-smell/required-and-default-attributes.sh + +shellcheck \ + test/utils/shippable/*.sh |