Commit b06dd8fb authored by Bart Ribbers's avatar Bart Ribbers
Browse files

testing/dendrite: build without network access

parent 2a1e4db4
Pipeline #68404 failed with stages
in 1 minute and 12 seconds
......@@ -13,10 +13,33 @@ pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
source="https://github.com/matrix-org/dendrite/archive/v$pkgver/dendrite-v$pkgver.tar.gz
https://dev.alpinelinux.org/archive/dendrite/$pkgname-$pkgver-deps.tar.gz
dendrite.initd
dendrite.confd
"
options="net" # Required to download Go deps
disturl="dev.alpinelinux.org:/archive/$pkgname/"
snapshot() {
clean
deps
mkdir -p "$srcdir"
cd "$srcdir"
git clone https://github.com/matrix-org/dendrite -b v$pkgver
cd dendrite
go mod download
go mod verify
go mod vendor
tar czvf $SRCDEST/dendrite-$pkgver-deps.tar.gz vendor
rsync --progress -La $SRCDEST/dendrite-$pkgver-deps.tar.gz $disturl
}
prepare() {
default_prepare
mv "$srcdir"/vendor "$builddir"/vendor
export GOFLAGS=-mod=vendor
}
build() {
for cmd in dendrite-monolith-server generate-keys create-account; do
......@@ -39,5 +62,6 @@ package() {
}
sha512sums="5ee54a6b1d515e70818d8efbe815f13150e67ddd71a83beb1a4656ad01b0d99d3bb2046b67133f27d4fcc9e64ebfbbc914c3f87d8cf16dd779ff702af34d2382 dendrite-v0.3.5.tar.gz
e183d8d4b4663eec4e33e546a6cb2ee1656d247231db08deec1e769851dd36b05deac3184150ef927eb3c3f450b3ad91ff24297757c878505cc63a2249da75fb deps.tar.gz
92274e4f52eb0f35822d7f27279efd372b7959d8531ad7a247286727defc375ca4b4939ed7b82fa29061a0b3c923a6c41ac0f27f3cfd8acb9c96af72ffac333c dendrite.initd
a6a088683a6aebc431d3eb289bd0d4dbaede698d1a5da25d6af2aad79e9cd36db02ce9173ab6904249f23b88bca5d1630258736feef7e8266e6c22220d74fa1f dendrite.confd"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment