hacking/integration-test/test.sh
Joe Gordon c096e0c991 Enable all checks during integration test
When testing trunk hacking against projects we want to see the results
for all checks. To make the output easier to understand, also enable
statistics output at the end, so one can quickly see if there is any
change in the numbers

Change-Id: Ic80083a5605a988aae75c20df924eced8674ef1f
2013-06-06 09:35:33 -07:00

21 lines
406 B
Bash
Executable File

#!/bin/bash
# Usage: test.sh openstack keystone
# Note: you can clone from a local file with REPO_ROOT=file:////~/path/to/repo
set -x
set -e
REPO_ROOT=${REPO_ROOT:-https://review.openstack.org/p}
if [[ -z "$2" ]]; then
org=openstack
project=nova
else
org=$1
project=$2
fi
git clone $REPO_ROOT/$org/$project --depth=1
cd $project
set +e
flake8 --select H --statistics
cd ..
rm -rf $project