aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Nachum <me@yotam.net>2019-11-09 16:06:02 +0200
committerYotam Nachum <me@yotam.net>2019-11-09 16:06:02 +0200
commitefc880cca088d72be108aa6a42da5951813f0470 (patch)
tree1b2fc188ab949962a4082c13698f681a49b45882
parentHandle nil response body (diff)
downloadgo-gemini-efc880cca088d72be108aa6a42da5951813f0470.tar.gz
go-gemini-efc880cca088d72be108aa6a42da5951813f0470.zip
Add CI with linting, testing and annotation
-rw-r--r--.build.yml26
1 files changed, 26 insertions, 0 deletions
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