Install pytest & friends to virtualenv
authorJeff Quast <contact@jeffquast.com>
Mon, 24 Nov 2014 02:50:08 +0000 (18:50 -0800)
committerJeff Quast <contact@jeffquast.com>
Mon, 24 Nov 2014 02:50:31 +0000 (18:50 -0800)
tools/teamcity-runtests.sh

index e39f15f4c23f72465f9abbe0490ce0287515eb7f..13eb33f7c49c42fd56328366714826915df15847 100755 (executable)
@@ -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 \