File: bitbucket-pipelines.yml

package info (click to toggle)
golang-bitbucket-creachadair-shell 0.0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 116 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
definitions:
  steps:
    - step: &Verify
        script:
          - PACKAGE_PATH="${GOPATH}/src/bitbucket.org/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}"
          - mkdir -pv "${PACKAGE_PATH}"
          - tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
          - cd "${PACKAGE_PATH}"
          - go version # log the version of Go we are using in this step
          - export GO111MODULE=on # enable modules inside $GOPATH
          - go get -v ./...
          - go build -v ./...
          - go test -v -race -cpu=1,4 ./...
          - go vet -v ./...

pipelines:
  default:  # run on each push
    - step:
        image: golang:1.20
        <<: *Verify
    - step:
        image: golang:1.21
        <<: *Verify