Merge "Add integration test option to tox"
This commit is contained in:
commit
5294bcd266
20
integration-test/test.sh
Executable file
20
integration-test/test.sh
Executable file
@ -0,0 +1,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:-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
|
||||||
|
cd ..
|
||||||
|
rm -rf $project
|
4
tox.ini
4
tox.ini
@ -18,6 +18,10 @@ downloadcache = ~/cache/pip
|
|||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
|
[testenv:integration]
|
||||||
|
commands =
|
||||||
|
bash integration-test/test.sh {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user