mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
allow metadata to be embedded in source repos via .fdroid.yml
This allows a source repo to include a complete metadata file so that it can be built directly in place using `fdroid build`. If that app is then included in fdroiddata, it will first load the source repo type and URL from fdroiddata, then read .fdroid.yml if it exists, then include the rest of the metadata as specified in fdroiddata, so that fdroiddata has precedence over the metadata in the source code. This lets `fdroid build` apps without having a whole fdroiddata setup, but instead just directly in place in the source code. This also lets devs optionallu maintain the fdroid metadata as part of their app, rather than in fdroiddata without loosing any control. This should make it easier to spread around the maintenance load.
This commit is contained in:
parent
b4a39ee272
commit
a4e4310803
8 changed files with 121 additions and 16 deletions
|
|
@ -100,6 +100,8 @@ echo_header "test python getsig replacement"
|
|||
|
||||
cd $WORKSPACE/tests/getsig
|
||||
./make.sh
|
||||
|
||||
cd $WORKSPACE/tests
|
||||
for testcase in $WORKSPACE/tests/*.TestCase; do
|
||||
$testcase
|
||||
done
|
||||
|
|
@ -138,6 +140,19 @@ $fdroid readmeta
|
|||
$fdroid update
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
echo_header 'run `fdroid build` in fresh git checkout from import.TestCase'
|
||||
|
||||
cd $WORKSPACE/tests/tmp/importer
|
||||
if [ -d $ANDROID_HOME/platforms/android-23 ]; then
|
||||
echo "build_tools = '`ls -1 $ANDROID_HOME/build-tools/ | sort -n | tail -1`'" > config.py
|
||||
echo "force_build_tools = True" >> config.py
|
||||
$fdroid build --verbose org.fdroid.ci.test.app:300
|
||||
else
|
||||
echo 'WARNING: Skipping `fdroid build` test since android-23 is missing!'
|
||||
fi
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
echo_header "copy tests/repo, generate java/gpg keys, update, and gpgsign"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue