mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+k6
This commit is contained in:
parent
67e4a2c593
commit
4f695cf499
1 changed files with 32 additions and 0 deletions
32
projects/k6.io/package.yml
Normal file
32
projects/k6.io/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/grafana/k6/archive/refs/tags/v{{ version }}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: grafana/k6/tags
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/k6
|
||||||
|
|
||||||
|
build:
|
||||||
|
script: |
|
||||||
|
go build -v -ldflags="$LDFLAGS"
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv k6 "{{ prefix }}"/bin
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.18
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.version={{ version }}
|
||||||
|
- -X main.revision=tea
|
||||||
|
linux:
|
||||||
|
# or segmentation fault
|
||||||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
k6 version
|
Loading…
Reference in a new issue