File: test.sh

package info (click to toggle)
python-hacking 0.10.2-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 256 kB
  • sloc: python: 873; makefile: 37; sh: 16
file content (20 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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:-git://git.openstack.org}
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