summaryrefslogtreecommitdiff
path: root/tools/teamcity-runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/teamcity-runtests.sh')
-rwxr-xr-xtools/teamcity-runtests.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/teamcity-runtests.sh b/tools/teamcity-runtests.sh
index e39f15f..13eb33f 100755
--- a/tools/teamcity-runtests.sh
+++ b/tools/teamcity-runtests.sh
@@ -21,16 +21,18 @@ if [ -z $venv_wrapper ]; then
fi
. ${venv_wrapper}
-rmvirtualenv ${venv} || true
-mkvirtualenv -p `which python${pyversion}` ${venv} || true
+workon ${venv} || mkvirtualenv -p `which python${pyversion}` ${venv} || true
# install ptyprocess
cd $here/../../ptyprocess
python setup.py install
+# install all test requirements
+pip install --upgrade pytest pytest pytest-cov coverage coveralls pytest-capturelog
+
# run tests
cd $here/..
-py.test-${pyversion} \
+py.test \
--cov pexpect \
--cov-config .coveragerc \
--junit-xml=results.${osrel}.py${pyversion}.xml \