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-05-31 23:43:07 +03:00
|
|
|
- test: |
|
2021-06-01 08:43:36 +03:00
|
|
|
make -C undocker coverage.html
|
2021-06-01 09:00:27 +03:00
|
|
|
- lint: |
|
2021-08-23 16:42:57 +03:00
|
|
|
make -C undocker -O -j$(nproc) 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
|