2022-05-31 08:17:06 +03:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2023-05-01 06:20:21 +03:00
|
|
|
# CircleCI Go images available at: https://hub.docker.com/r/cimg/go
|
|
|
|
- image: cimg/go:1.18
|
2022-05-31 08:17:06 +03:00
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
2023-05-01 06:20:21 +03:00
|
|
|
working_directory: ~/go/src/bitbucket.org/ausocean/av
|
2022-05-31 08:17:06 +03:00
|
|
|
|
|
|
|
environment:
|
|
|
|
TEST_RESULTS: /tmp/test-results
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run: git clone --depth=1 https://bitbucket.org/ausocean/test.git ${GOPATH}/src/bitbucket.org/ausocean/test
|
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- v1-pkg-cache
|
|
|
|
|
|
|
|
- run: go get -d -t -v ./...
|
|
|
|
|
2022-11-12 07:58:44 +03:00
|
|
|
- run: go build -v ./...
|
2022-05-31 08:17:06 +03:00
|
|
|
|
2022-11-12 07:58:44 +03:00
|
|
|
- run: go test -v ./...
|
2022-05-31 08:17:06 +03:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: v1-pkg-cache
|
|
|
|
paths:
|
|
|
|
- "/go/pkg"
|