mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+bytebase.com (#5549)
* new file: projects/bytebase.com/package.yml * +gcc * debug * set LANG & LC_* * debug * LC_ALL: C * exempt linux from testing --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
7e39ec8dea
commit
892c4c6123
41
projects/bytebase.com/package.yml
Normal file
41
projects/bytebase.com/package.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
distributable:
|
||||
url: https://github.com/bytebase/bytebase/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: bytebase/bytebase
|
||||
|
||||
dependencies:
|
||||
nodejs.org: '>=20.10'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.22
|
||||
pnpm.io: '*'
|
||||
linux:
|
||||
# error: invalid linker name in argument '-fuse-ld=gold'
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
./scripts/build_bytebase.sh {{prefix}}/bin
|
||||
|
||||
provides:
|
||||
- bin/bytebase
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
pkgx.sh: ^1
|
||||
script:
|
||||
- bytebase version | grep {{version}}
|
||||
# we'd love to test this more on linux, but we have issues running initdb as root;
|
||||
# so, we'll satisfy ourselves with the above and testing on darwin
|
||||
- run: exit 0
|
||||
if: linux
|
||||
|
||||
- FREE_PORT=$(pkgx get-port)
|
||||
- bytebase --port $FREE_PORT > out.log 2>&1 &
|
||||
- PID=$!
|
||||
- sleep 35
|
||||
- curl -L http://localhost:$FREE_PORT | grep 'Bytebase' || cat out.log
|
||||
- kill $PID
|
||||
- cat out.log | grep "has started on port $FREE_PORT"
|
Loading…
Reference in a new issue