mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
jenkins-build: run test suite from pip install
using source tarball
Since `python setup.py sdist` provides the actual tarball that will be installed via `easy_install`, `pip install`, etc. it should also be tested. The existing `pip install -e $WORKSPACE` tests the .egg-link install format
This commit is contained in:
parent
a020625462
commit
e2cbaff377
1 changed files with 10 additions and 3 deletions
|
@ -50,13 +50,21 @@ cd $WORKSPACE/tests
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# test building the source tarball
|
# test building the source tarball, then installing it
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
python2 setup.py sdist
|
python2 setup.py sdist
|
||||||
|
|
||||||
|
rm -rf $WORKSPACE/env
|
||||||
|
virtualenv --python=python2 $WORKSPACE/env
|
||||||
|
. $WORKSPACE/env/bin/activate
|
||||||
|
pip install dist/fdroidserver-*.tar.gz
|
||||||
|
|
||||||
|
# run tests in new pip+virtualenv install
|
||||||
|
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# test install using site packages
|
# test install using install direct from git repo
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
rm -rf $WORKSPACE/env
|
rm -rf $WORKSPACE/env
|
||||||
virtualenv --python=python2 --system-site-packages $WORKSPACE/env
|
virtualenv --python=python2 --system-site-packages $WORKSPACE/env
|
||||||
|
@ -65,7 +73,6 @@ pip install -e $WORKSPACE
|
||||||
python2 setup.py install
|
python2 setup.py install
|
||||||
|
|
||||||
# run tests in new pip+virtualenv install
|
# run tests in new pip+virtualenv install
|
||||||
. $WORKSPACE/env/bin/activate
|
|
||||||
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue