mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 09:51:07 +03:00
tests: support Ubuntu/trusty's python3.4-venv
This commit is contained in:
parent
bc192b6be0
commit
d1f6126dea
1 changed files with 14 additions and 2 deletions
|
@ -47,6 +47,18 @@ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH
|
||||||
cd $WORKSPACE/tests
|
cd $WORKSPACE/tests
|
||||||
./run-tests $apksource
|
./run-tests $apksource
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------#
|
||||||
|
# find pyvenv, to support Ubuntu/trusty's python3.4-venv
|
||||||
|
|
||||||
|
if which pyvenv; then
|
||||||
|
pyvenv=pyvenv
|
||||||
|
elif which pyvenv-3.4; then
|
||||||
|
pyvenv=pyvenv-3.4
|
||||||
|
else
|
||||||
|
echo "pyvenv required to run this test suite!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# test building the source tarball, then installing it
|
# test building the source tarball, then installing it
|
||||||
|
@ -54,7 +66,7 @@ cd $WORKSPACE
|
||||||
python3 setup.py sdist
|
python3 setup.py sdist
|
||||||
|
|
||||||
rm -rf $WORKSPACE/env
|
rm -rf $WORKSPACE/env
|
||||||
pyvenv $WORKSPACE/env
|
$pyvenv $WORKSPACE/env
|
||||||
. $WORKSPACE/env/bin/activate
|
. $WORKSPACE/env/bin/activate
|
||||||
# workaround https://github.com/pypa/setuptools/issues/937
|
# workaround https://github.com/pypa/setuptools/issues/937
|
||||||
pip3 install setuptools==33.1.1
|
pip3 install setuptools==33.1.1
|
||||||
|
@ -68,7 +80,7 @@ fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||||
# test install using install direct from git repo
|
# test install using install direct from git repo
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
rm -rf $WORKSPACE/env
|
rm -rf $WORKSPACE/env
|
||||||
pyvenv $WORKSPACE/env
|
$pyvenv $WORKSPACE/env
|
||||||
. $WORKSPACE/env/bin/activate
|
. $WORKSPACE/env/bin/activate
|
||||||
# workaround https://github.com/pypa/setuptools/issues/937
|
# workaround https://github.com/pypa/setuptools/issues/937
|
||||||
pip3 install setuptools==33.1.1
|
pip3 install setuptools==33.1.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue