20 lines
518 B
YAML
20 lines
518 B
YAML
machine:
|
|
environment:
|
|
GOPATH: "${HOME}/.go_workspace"
|
|
IMPORT_PATH: "${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}"
|
|
APP_PATH: "${IMPORT_PATH}/${CIRCLE_PROJECT_REPONAME}"
|
|
|
|
dependencies:
|
|
override:
|
|
- sudo add-apt-repository ppa:masterminds/glide -y
|
|
- sudo apt-get update
|
|
- sudo apt-get install glide -y
|
|
|
|
test:
|
|
pre:
|
|
- mkdir -p "$IMPORT_PATH"
|
|
- ln -sf "$(pwd)" "${APP_PATH}"
|
|
- cd "${APP_PATH}" && glide install
|
|
override:
|
|
- cd "${APP_PATH}" && go test -cover $(glide nv)
|