mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
btlog: test with fdroid update
without requiring ssh access
Yay git! Just use a filesystem git remote instead of ssh.
This commit is contained in:
parent
4b7084f779
commit
136d58dbae
@ -1408,8 +1408,9 @@ def main():
|
||||
if len(repodirs) > 1:
|
||||
index.make(apps, sortedids, archapks, repodirs[1], True)
|
||||
|
||||
if config.get('binary_transparency_remote'):
|
||||
btlog.make_binary_transparency_log(repodirs, git_remote=config['binary_transparency_remote'])
|
||||
git_remote = config.get('binary_transparency_remote')
|
||||
if git_remote or os.path.isdir(os.path.join('binary_transparency', '.git')):
|
||||
btlog.make_binary_transparency_log(repodirs, git_remote=git_remote)
|
||||
|
||||
if config['update_stats']:
|
||||
# Update known apks info...
|
||||
|
@ -592,12 +592,15 @@ echo_header "copy tests/repo, update with binary transparency log"
|
||||
REPOROOT=`create_test_dir`
|
||||
GNUPGHOME=$REPOROOT/gnupghome
|
||||
KEYSTORE=$WORKSPACE/tests/keystore.jks
|
||||
mkdir $REPOROOT/git_remote
|
||||
cd $REPOROOT/git_remote
|
||||
git init --bare
|
||||
cd $REPOROOT
|
||||
$fdroid init --keystore $KEYSTORE --repo-keyalias=sova
|
||||
cp -a $WORKSPACE/tests/metadata $WORKSPACE/tests/repo $WORKSPACE/tests/stats $REPOROOT/
|
||||
echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
||||
echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
|
||||
echo 'binary_transparency_remote = "git@gitlab.com:fdroid-continuous-integration/binary-transparency.git"' >> config.py
|
||||
echo "binary_transparency_remote = '$REPOROOT/git_remote'" >> config.py
|
||||
echo "accepted_formats = ['json', 'txt', 'yml']" >> config.py
|
||||
$fdroid update --verbose --pretty
|
||||
test -e repo/index.xml
|
||||
@ -606,6 +609,8 @@ test -e repo/index-v1.jar
|
||||
grep -F '<application id=' repo/index.xml > /dev/null
|
||||
cd binary_transparency
|
||||
[ `git rev-list --count HEAD` == "2" ]
|
||||
cd $REPOROOT/git_remote
|
||||
[ `git rev-list --count HEAD` == "2" ]
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
|
Loading…
Reference in New Issue
Block a user