mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
[WIP] +pokt.network (#862)
* Adding pocket binary yaml config * Fixed github tag * Added script tag in test
This commit is contained in:
parent
98e69376b8
commit
de2d9c886d
29
projects/pokt.network/package.yml
Normal file
29
projects/pokt.network/package.yml
Normal 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
|
Loading…
Reference in a new issue