mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-02-21 11:08:07 +00:00
* chore: add go-libp2p@v0.34.0 to transport-interop * Add webtransport back in * chore: add go-libp2p@v0.35.0 to transport-interop * Remove go-libp2p versions < 0.33 --------- Co-authored-by: galargh <galargh@users.noreply.github.com> Co-authored-by: Marco Munizaga <marco@marcopolo.io> Co-authored-by: Marco Munizaga <git@marcopolo.io>
32 lines
1004 B
Makefile
32 lines
1004 B
Makefile
image_name := go-v0.35
|
|
version := 0.35.0
|
|
|
|
all: image.json
|
|
|
|
image.json: verify-checksum go-libp2p-${version}
|
|
cd go-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile .
|
|
docker image inspect ${image_name} -f "{{.Id}}" | \
|
|
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
|
|
|
|
go-libp2p-${version}: go-libp2p-${version}.zip
|
|
unzip -o go-libp2p-${version}.zip
|
|
|
|
go-libp2p-${version}.zip:
|
|
wget -O $@ "https://github.com/libp2p/go-libp2p/archive/v${version}.zip"
|
|
|
|
# Run `make version.lock` to generate this lock file. This file should be commited.
|
|
# This locks the exact contents of the specified version. This lets us use the
|
|
# human readable name while still making sure the contents don't change.
|
|
version.lock: go-libp2p-${version}.zip
|
|
shasum -a 256 go-libp2p-${version}.zip > $@
|
|
|
|
verify-checksum: go-libp2p-${version}.zip
|
|
shasum -a 256 -c version.lock
|
|
|
|
.PHONY: clean all verify-checksum
|
|
|
|
clean:
|
|
rm image.json
|
|
rm go-libp2p-*.zip
|
|
rm -rf go-libp2p-*
|