~samwhited/clarkns

ref: 7eacd4ea6aa09f772fc349b3cc3562f2ed791d13 clarkns/.builds/ci.yml -rw-r--r-- 717 bytes
7eacd4eaSam Whited Add boilerplate documentation and CI config 1 year, 3 months ago
                                                                                
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
32
33
image: freebsd/latest
packages:
  - go
sources:
  - https://github.com/mellium/clarkns
tasks:
  - setup: |
      go version
      go env

      go get -u golang.org/x/lint/golint
      go get -u github.com/securego/gosec/cmd/gosec
      go get -u git.sr.ht/~samwhited/checkdoc

      echo 'export PATH=$(go env GOPATH)/bin:$PATH' >> ~/.buildenv
  - info: |
      go version
      go env
  - test: |
      cd clarkns/
      go test -v -cover ./...
  - lint: |
      cd clarkns/
      go vet ./...
      gofmt -s -l . && [ -z "$(gofmt -s -l .)" ]

      golint -set_exit_status ./...
      gosec ./...
      checkdoc ./...
  - validate: |
      cd clarkns/
      go mod tidy
      git diff --exit-code -- go.mod go.sum