~samwhited/xmpp

ref: 551ca28f1d1f153e028b76ce9d53dbc5ff41dc01 xmpp/bitbucket-pipelines.yml -rw-r--r-- 834 bytes
551ca28fSam Whited docs: rename LICENSE file 3 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
image: golang:1.11beta2
pipelines:
  default:
    - step:
        caches:
          - bin
          - bench
        script:
          - export PATH="/gosrc/bin:$PATH"
          - mkdir -p "$GOPATH/bin"
          - cp -r /gobin/* "$GOPATH/bin/" || true
          - '[[ -e "$GOPATH/bin/benchcmp" ]] || GO111MODULE=off go get -u golang.org/x/tools/cmd/benchcmp'
          - mkdir -p "/bench"
          - mv /bench/new.txt /bench/old.txt || true
          - go version
          - go env
          - go vet ./...
          - go test -race ./...
          - go test -cover ./...
          - go test -run=NONE -bench . -benchmem ./... | tee /bench/new.txt
          - '[[ -e /bench/old.txt ]] && benchcmp /bench/old.txt /bench/new.txt'
          - cp -r "$GOPATH/bin" /gobin || true
definitions:
  caches:
    bin: /gobin
    bench: /bench