とりあえず下のような設定ファイルを使ってます
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/IzumiSy/yourlibrary
steps:
- checkout
- run:
name: ensure
command: |
if [ ! -d vendor ]; then
if ! type dep >/dev/null 2>&1; then
go get github.com/golang/dep/cmd/dep
fi
dep ensure
fi
- run:
name: test
command: go test -v