mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
de2d9c886d
* Adding pocket binary yaml config * Fixed github tag * Added script tag in test
29 lines
650 B
YAML
29 lines
650 B
YAML
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
|