summaryrefslogtreecommitdiff
path: root/tools/teamcity-runtests.sh
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-11-23 18:50:08 -0800
committerJeff Quast <contact@jeffquast.com>2014-11-23 18:50:31 -0800
commitebef5d0ac20bb5d925a0d36647bce56680404c57 (patch)
tree68b6c734e6392ecd61c4358d005bd8663d190c5d /tools/teamcity-runtests.sh
parentdf45962a8fc3437c40c86dd6e39dcd700d1bd53f (diff)
downloadpexpect-git-ebef5d0ac20bb5d925a0d36647bce56680404c57.tar.gz
Install pytest & friends to virtualenv
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 \