2016-06-02 06:08:14 +02:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
|
|
|
source_root=$(python -c "from os import path; print(path.abspath(path.join(path.dirname('$0'), '../../..')))")
|
|
|
|
|
2016-06-04 19:58:17 +02:00
|
|
|
install_deps="${INSTALL_DEPS:-}"
|
|
|
|
|
2016-06-02 06:08:14 +02:00
|
|
|
cd "${source_root}"
|
|
|
|
|
2016-06-04 19:58:17 +02:00
|
|
|
if [ "${install_deps}" != "" ]; then
|
2016-09-23 01:12:10 +02:00
|
|
|
apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get install shellcheck
|
|
|
|
|
2016-06-28 01:34:19 +02:00
|
|
|
pip install -r "${source_root}/test/utils/shippable/code-smell-requirements.txt" --upgrade
|
|
|
|
pip list
|
2016-06-04 19:58:17 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
yamllint .
|
2016-06-02 06:08:14 +02:00
|
|
|
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
|
2016-09-23 01:12:10 +02:00
|
|
|
|
|
|
|
shellcheck \
|
2016-10-12 23:57:53 +02:00
|
|
|
test/integration/targets/*/*.sh \
|
2016-09-23 01:12:10 +02:00
|
|
|
test/utils/shippable/*.sh
|