~samwhited/xmpp

ref: c4240cc1b1409e88fc1bc96793b0cbbbf48d084b xmpp/.builds/freebsd.yml -rw-r--r-- 816 bytes
c4240cc1Sam Whited design: add an open question to stanza mux 2 years 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
34
35
36
37
38
39
40
image: freebsd/latest
packages:
  - go
sources:
  - https://github.com/mellium/xmpp
tasks:
  - setup: |
      go version
      go env

      go get -u golang.org/x/lint/golint
      go get -u github.com/securego/gosec/cmd/gosec

      echo 'export PATH=$(go env GOPATH)/bin:$PATH' >> ~/.buildenv
  - stable: |
      cd xmpp/
      go test -v -cover ./...
  - examples: |
      cd xmpp/examples/
      for d in ./*/; do
        pushd $d
        go build
        popd
      done
  - lint: |
      cd xmpp/
      go vet ./...
      gofmt -s -l . && [ -z "$(gofmt -s -l .)" ]

      golint ./...
      gosec ./...
  - validate: |
      cd xmpp/
      go mod tidy
      git diff --exit-code -- go.mod go.sum
  - tip: |
      go get golang.org/dl/gotip
      gotip download
      cd xmpp/
      gotip test -v -cover ./...