Test ipfs in CI

This commit is contained in:
Jochen Sprickerhof 2023-05-30 14:28:51 +02:00
parent 90d9e9e045
commit 92612f3565
No known key found for this signature in database
GPG Key ID: 5BFFDCC258E69433
1 changed files with 28 additions and 0 deletions

View File

@ -602,3 +602,31 @@ docker:
fi
- docker push $RELEASE_IMAGE
- docker push $RELEASE_IMAGE-bullseye
ipfs:
image: debian:testing
only:
changes:
- .gitlab-ci.yml
- fdroidserver/deploy.py
<<: *apt-template
script:
- apt-get install
ca-certificates
fdroidserver
wget
- export FDROIDSERVER=$PWD
- cd /tmp
- wget https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-amd64.tar.gz
- tar -xvzf kubo_v0.20.0_linux-amd64.tar.gz
- export PATH=/tmp/kubo:$PATH
- ipfs init
- test -d /tmp/fdroid/repo || mkdir -p /tmp/fdroid/repo
- cp $FDROIDSERVER/tests/config.py $FDROIDSERVER/tests/keystore.jks /tmp/fdroid/
- cp $FDROIDSERVER/tests/repo/com.politedroid_6.apk /tmp/fdroid/repo/
- cd /tmp/fdroid
- 'printf "ipfs = True\n" >> config.py'
- $FDROIDSERVER/fdroid update --verbose --create-metadata
- $FDROIDSERVER/fdroid deploy --verbose
- ipfs files ls /repo
- ipfs files ls /repo/com.politedroid_6.apk