[WIP] +pokt.network (#862)

* Adding pocket binary yaml config

* Fixed github tag

* Added script tag in test
This commit is contained in:
Daniel Olshansky 2023-03-25 12:15:30 -07:00 committed by GitHub
parent 98e69376b8
commit de2d9c886d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
distributable:
url: https://github.com/pokt-network/pocket-core/archive/refs/tags/RC-{{version}}.tar.gz
strip-components: 1
versions:
github: pokt-network/pocket-core/tags
strip: /^RC-/
provides:
- bin/pocket
dependencies:
go.dev: ^1.18
build:
dependencies:
go.dev: ^1.18
script: |
go build -o pocket ./app/cmd/pocket_core/main.go
mkdir -p "{{ prefix }}"/bin
mv pocket "{{ prefix }}"/bin
test:
script: |
pocket --help >> /tmp/pocket.help
if ! grep -q "Pocket is a distributed network that relays data" /tmp/pocket.help; then
echo "Error: Pocket was not installed successfully"
exit 1
fi