aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: aee27f3738374ad689495470a46af995eb24dea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
image: fedora/latest
packages:
  - go
  - tar
sources:
  - https://git.sr.ht/~yotam/go-gemini-server
  - https://git.sr.ht/~sircmpwn/annotatego
secrets:
  - f43da1db-697d-4101-8607-e96f574b035a
tasks:
- lint: |
   curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0
   go get honnef.co/go/tools/cmd/staticcheck
   cd go-gemini-server
   go vet
   ~/go/bin/staticcheck
   ~/go/bin/golangci-lint run
- 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