Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 631 Bytes
machine:
environment:
PROJECT_GOPATH: "${HOME}/.go_workspace"
PROJECT_PARENT_PATH: "${PROJECT_GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}"
PROJECT_PATH: "${PROJECT_PARENT_PATH}/${CIRCLE_PROJECT_REPONAME}"
dependencies:
override:
- mkdir -p "${PROJECT_PARENT_PATH}"
- rsync -avC "${HOME}/${CIRCLE_PROJECT_REPONAME}/" "${PROJECT_PATH}"
test:
override:
- cd "${PROJECT_PATH}" && go test -v ./...
- cd "${PROJECT_PATH}" && go build -v && ./goverage -v -covermode count -coverprofile=coverage.out
- cd "${PROJECT_PATH}" && go tool cover -html=coverage.out -o $CIRCLE_ARTIFACTS/coverage.html