2016-06-02 04:08:14 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
|
|
|
source_root=$(python -c "from os import path; print(path.abspath(path.join(path.dirname('$0'), '../../..')))")
|
|
|
|
|
2016-06-04 17:58:17 +00:00
|
|
|
install_deps="${INSTALL_DEPS:-}"
|
|
|
|
|
2016-06-02 04:08:14 +00:00
|
|
|
cd "${source_root}"
|
|
|
|
|
2016-06-04 17:58:17 +00:00
|
|
|
if [ "${install_deps}" != "" ]; then
|
2016-09-22 23:12:10 +00:00
|
|
|
apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get install shellcheck
|
|
|
|
|
2016-06-27 23:34:19 +00:00
|
|
|
pip install -r "${source_root}/test/utils/shippable/code-smell-requirements.txt" --upgrade
|
|
|
|
pip list
|
2016-06-04 17:58:17 +00:00
|
|
|
fi
|
|
|
|
|
2016-04-18 15:25:39 +00:00
|
|
|
yamllint ./test
|
|
|
|
|
2016-11-08 00:46:33 +00:00
|
|
|
test/sanity/code-smell/replace-urlopen.sh
|
|
|
|
test/sanity/code-smell/use-compat-six.sh
|
2016-10-31 19:53:11 +00:00
|
|
|
test/sanity/code-smell/boilerplate.sh
|
|
|
|
test/sanity/code-smell/required-and-default-attributes.sh
|
2016-11-02 21:47:42 +00:00
|
|
|
test/sanity/code-smell/shebang.sh
|
2016-11-03 21:33:17 +00:00
|
|
|
test/sanity/code-smell/line-endings.sh
|
2016-11-07 23:02:13 +00:00
|
|
|
test/sanity/code-smell/empty-init.sh
|
2016-11-08 00:46:33 +00:00
|
|
|
test/sanity/code-smell/no-basestring.sh
|
2016-09-22 23:12:10 +00:00
|
|
|
|
|
|
|
shellcheck \
|
2016-10-12 21:57:53 +00:00
|
|
|
test/integration/targets/*/*.sh \
|
2016-09-22 23:12:10 +00:00
|
|
|
test/utils/shippable/*.sh
|