diff options
author | Yotam Nachum <me@yotam.net> | 2019-11-09 16:10:39 +0200 |
---|---|---|
committer | Yotam Nachum <me@yotam.net> | 2019-11-09 16:15:32 +0200 |
commit | 6318908fbc355b162b467909e8bba50dfa093a6a (patch) | |
tree | cf0398405051c91939957e33d10b4cf8033d151b | |
parent | Fix go vet and go lint warnings (diff) | |
download | shavit-6318908fbc355b162b467909e8bba50dfa093a6a.tar.gz shavit-6318908fbc355b162b467909e8bba50dfa093a6a.zip |
Add CI with linting, testing and annotations
-rw-r--r-- | .build.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..761b965 --- /dev/null +++ b/.build.yml @@ -0,0 +1,26 @@ +image: fedora/latest +packages: + - go +sources: + - https://git.sr.ht/~yotam/go-gemini-server + - https://git.sr.ht/~sircmpwn/annotatego +secrets: + - f43da1db-697d-4101-8607-e96f574b035a +tasks: +- lint: | + cd go-gemini-server + go vet +- test: | + cd go-gemini-server + go test +- build: | + cd go-gemini-server + go build +- annotatego: | + cd annotatego + go build + sudo cp annotatego /usr/bin/ +- annotate: | + cd go-gemini-server + annotatego -v git.sr.ht/~yotam/go-gemini-server... >annotations.json + ~/upload-annotations annotations.json yotam go-gemini-server |