mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 17:31:07 +03:00
gitlab-ci: move sdist test run to new fedora job
A full run of the test suite takes quite a bit of time. This removes one of the 3 runs from the main 'tests' job, and puts it into the Fedora job. That test run is mostly to make sure the setup.py and source tarball are correctly, so that doesn't affect merge requests very often. This also tests `pip install --user`, which was not really being tested before.
This commit is contained in:
parent
1a77c6af38
commit
05abbfbabd
2 changed files with 10 additions and 26 deletions
|
@ -74,28 +74,6 @@ for locale in *; do
|
|||
done
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
# test building the source tarball, then installing it
|
||||
cd $WORKSPACE
|
||||
python3 setup.py compile_catalog sdist
|
||||
|
||||
# make sure translation files got compiled and included
|
||||
tar tzf dist/fdroidserver-*.tar.gz | grep locale/de/LC_MESSAGES/fdroidserver.mo
|
||||
|
||||
rm -rf $WORKSPACE/env
|
||||
$pyvenv $WORKSPACE/env
|
||||
. $WORKSPACE/env/bin/activate
|
||||
# workaround https://github.com/pypa/setuptools/issues/937
|
||||
pip3 install --quiet setuptools==33.1.1
|
||||
pip3 install --quiet dist/fdroidserver-*.tar.gz
|
||||
|
||||
# make sure translation files were installed
|
||||
test -e $WORKSPACE/env/share/locale/de/LC_MESSAGES/fdroidserver.mo
|
||||
|
||||
# run tests in new pip+pyvenv install
|
||||
fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
# test install using install direct from git repo
|
||||
cd $WORKSPACE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue