~samwhited/xmpp

ref: 379c0dc11b58c2a0b146bf34557e6e5360bd592f xmpp/bitbucket-pipelines.yml -rw-r--r-- 1.2 KiB
379c0dc1Sam Whited styling: remove styling experiment 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
27
28
29
30
31
32
33
34
35
image: golang:latest
pipelines:
  default:
    - step:
        caches:
          - vendor
          - bin
          - bench
        script:
          - export PATH="/gosrc/bin:$PATH"
          - mkdir -p "$GOPATH/bin"
          - cp /gobin "$GOPATH/bin" || true
          - '[[ -e "$GOPATH/bin/dep" ]] || go get -u github.com/golang/dep/cmd/dep'
          - '[[ -e "$GOPATH/bin/benchcmp" ]] || go get -u golang.org/x/tools/cmd/benchcmp'
          - mkdir -p "/bench"
          - mv /bench/new.txt /bench/old.txt || true
          - mkdir -p "$GOPATH/src/mellium.im/"
          - ln -s "`pwd`" "$GOPATH/src/mellium.im/xmpp"
          - cd "$GOPATH/src/mellium.im/xmpp"
          - cp -r /vendor $GOPATH/src/mellium.im/xmpp/vendor || true
          - dep ensure
          - 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/src/mellium.im/xmpp/vendor" /vendor || true
          - cp -r "$GOPATH/bin" /gobin || true
definitions:
  caches:
    vendor: /vendor
    bin: /gobin
    bench: /bench