mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
tests: only run source tarball test if running from git clone
This commit is contained in:
parent
60173d35df
commit
a9aa8788e0
@ -636,19 +636,21 @@ $fdroid install || true
|
|||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "create a source tarball"
|
# only run this test if running from a git repo, not all files are in the tarball
|
||||||
|
if [ -e .git/config ]; then
|
||||||
|
echo_header "create a source tarball"
|
||||||
|
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
./setup.py compile_catalog sdist
|
./setup.py compile_catalog sdist
|
||||||
|
|
||||||
REPOROOT=`create_test_dir`
|
|
||||||
cd $REPOROOT
|
|
||||||
tar xzf `ls -1 $WORKSPACE/dist/fdroidserver-*.tar.gz | sort -n | tail -1`
|
|
||||||
cd $REPOROOT
|
|
||||||
./fdroidserver-*/fdroid init
|
|
||||||
copy_apks_into_repo $REPOROOT
|
|
||||||
./fdroidserver-*/fdroid update --create-metadata --verbose
|
|
||||||
|
|
||||||
|
REPOROOT=`create_test_dir`
|
||||||
|
cd $REPOROOT
|
||||||
|
tar xzf `ls -1 $WORKSPACE/dist/fdroidserver-*.tar.gz | sort -n | tail -1`
|
||||||
|
cd $REPOROOT
|
||||||
|
./fdroidserver-*/fdroid init
|
||||||
|
copy_apks_into_repo $REPOROOT
|
||||||
|
./fdroidserver-*/fdroid update --create-metadata --verbose
|
||||||
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "test config checks of local_copy_dir"
|
echo_header "test config checks of local_copy_dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user