undocker/.build.yml

20 lines
548 B
YAML
Raw Normal View History

2021-05-31 23:43:07 +03:00
image: alpine/edge
packages:
- go
2021-06-01 09:00:27 +03:00
- git
2021-06-01 08:42:23 +03:00
- make
2021-08-24 16:42:48 +03:00
- shellcheck
2021-05-31 23:43:07 +03:00
sources:
- https://git.sr.ht/~motiejus/undocker
tasks:
2021-06-01 09:00:27 +03:00
- setup: |
2021-06-01 09:07:32 +03:00
go install honnef.co/go/tools/cmd/staticcheck@latest
2021-09-29 14:45:53 +03:00
- built-test-lint: |
make -C undocker -O -j$(nproc) undocker coverage.html lint
2021-09-29 14:38:31 +03:00
- usage: |
2021-09-29 14:43:21 +03:00
# like 'grep -q', but prints output too.
# | tee /dev/stderr doesn't work on sourcehut workers; permission denied.
./undocker/undocker |& awk 'BEGIN{c=1};/Built with /{c=0};{print};END{exit c}'
2021-05-31 23:43:07 +03:00
artifacts:
2021-06-01 08:42:23 +03:00
- undocker/coverage.html