Test ipfs in CI
This commit is contained in:
parent
90d9e9e045
commit
92612f3565
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue