mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
tests: create a source tarball and use that to build a repo
This tests that setup.py is in working order and creating a functional source tarball.
This commit is contained in:
parent
0e47d62024
commit
25a94dced2
1 changed files with 18 additions and 0 deletions
|
@ -75,6 +75,24 @@ if [ -z $aapt ]; then
|
||||||
aapt=`ls -1 $ANDROID_HOME/build-tools/*/aapt | sort | tail -1`
|
aapt=`ls -1 $ANDROID_HOME/build-tools/*/aapt | sort | tail -1`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------#
|
||||||
|
echo_header "create a source tarball and use that to build a repo"
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
|
python setup.py sdist
|
||||||
|
|
||||||
|
REPOROOT=`create_test_dir`
|
||||||
|
cd $REPOROOT
|
||||||
|
tar xzf `ls -1 $WORKSPACE/dist/fdroidserver-*.tar.gz | sort -n | tail -1`
|
||||||
|
cd $REPOROOT/fdroidserver-*/fdroidserver/getsig
|
||||||
|
./make.sh
|
||||||
|
cd $REPOROOT
|
||||||
|
./fdroidserver-*/fdroid init
|
||||||
|
copy_apks_into_repo $REPOROOT
|
||||||
|
./fdroidserver-*/fdroid update --create-metadata
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "test config checks of local_copy_dir"
|
echo_header "test config checks of local_copy_dir"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue