sahara-ci-config/slave-scripts/gate-sahara-pep8-trunk.sh
Vitaly Gridnev 94cb7df6da Use upstream bashate in pep8 trunk job
Change-Id: I1b3e16c036c25721b1cf64af02fe35b0770ac85a
2016-02-09 13:04:08 +03:00

17 lines
582 B
Bash
Executable File

#!/bin/bash -xe
set -o pipefail
# replace hacking and bashate with master tarball
sed -i '/^hacking/d' test-requirements.txt
sed -i '/^bashate/d' test-requirements.txt
REQS=$(cat test-requirements.txt)
echo -e "-f http://tarballs.openstack.org/bashate/bashate-master.tar.gz#egg=bashate-master\nbashate==master\n\
-f http://tarballs.openstack.org/hacking/hacking-master.tar.gz#egg=hacking-master\nhacking==master\n${REQS}" > test-requirements.txt
sed -i '/^ignore/d' tox.ini
sed -ie 's/\(^exclude.*\)/\1,*sahara-ci-config*/' tox.ini
tox -v -epep8 -- --statistics | tee pep8.txt