From efc880cca088d72be108aa6a42da5951813f0470 Mon Sep 17 00:00:00 2001 From: Yotam Nachum Date: Sat, 9 Nov 2019 16:06:02 +0200 Subject: Add CI with linting, testing and annotation --- .build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..0b1a1ff --- /dev/null +++ b/.build.yml @@ -0,0 +1,26 @@ +image: fedora/latest +packages: + - go +sources: + - https://git.sr.ht/~yotam/go-gemini + - https://git.sr.ht/~sircmpwn/annotatego +secrets: + - f43da1db-697d-4101-8607-e96f574b035a +tasks: +- lint: | + cd go-gemini + go vet +- test: | + cd go-gemini + go test +- build: | + cd go-gemini + make +- annotatego: | + cd annotatego + go build + sudo cp annotatego /usr/bin/ +- annotate: | + cd go-gemini + annotatego -v git.sr.ht/~yotam/go-gemini... >annotations.json + ~/upload-annotations annotations.json yotam go-gemini -- cgit v1.2.3