2018-09-10 14:13:27 +03:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
# CircleCI Go images available at: https://hub.docker.com/r/circleci/golang/
|
2022-01-05 05:13:20 +03:00
|
|
|
- image: circleci/golang:1.17.2
|
2019-03-06 10:40:07 +03:00
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
2018-09-10 14:13:27 +03:00
|
|
|
|
|
|
|
working_directory: /go/src/bitbucket.org/ausocean/av
|
|
|
|
|
|
|
|
environment:
|
|
|
|
TEST_RESULTS: /tmp/test-results
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
2019-02-10 01:38:00 +03:00
|
|
|
- run: git clone --depth=1 https://bitbucket.org/ausocean/test.git ${GOPATH}/src/bitbucket.org/ausocean/test
|
|
|
|
|
2018-09-10 14:13:27 +03:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- v1-pkg-cache
|
|
|
|
|
2018-09-10 14:37:10 +03:00
|
|
|
- run: go get -d -t -v ./...
|
2018-09-10 14:13:27 +03:00
|
|
|
|
2021-05-17 04:21:50 +03:00
|
|
|
- run: go build -v -tags nocv ./...
|
2018-09-10 14:49:16 +03:00
|
|
|
|
2021-05-17 04:21:50 +03:00
|
|
|
- run: go test -v -tags nocv ./...
|
2018-09-10 14:13:27 +03:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
key: v1-pkg-cache
|
|
|
|
paths:
|
|
|
|
- "/go/pkg"
|