Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
add script run_tests to run the tests quickly in a virtualenv
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Flesch <jflesch@openpaper.work>
  • Loading branch information
jflesch committed Jan 25, 2018
1 parent 8838341 commit 9719e41
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

ret=0


for pyver in python3 ; do
echo "# Testing with ${pyver}"
rm -rf venv-${pyver}
virtualenv -p ${pyver} --system-site-packages venv-${pyver}
. venv-${pyver}/bin/activate
if ! ${pyver} ./setup.py install ; then
echo "Install failed"
exit 1
fi

if ! ${pyver} ./setup.py nosetests ; then
echo "Tests failed"
ret=1
fi
done

exit ${ret}

0 comments on commit 9719e41

Please sign in to comment.