diff --git a/circle.yml b/circle.yml index 1a3036e..da5f047 100644 --- a/circle.yml +++ b/circle.yml @@ -1,12 +1,23 @@ machine: services: - docker - environment: DOCKER_API_VERSION: "1.20" POSTGRES_IMAGE: "postgres:9.5" - + IMPORT_PATH: "/home/ubuntu/.go_workspace/src/github.com/jonog" + APP_PATH: "$IMPORT_PATH/redalert" dependencies: + override: + - sudo add-apt-repository ppa:masterminds/glide -y + - sudo apt-get update + - sudo apt-get install glide -y pre: - docker pull sickp/alpine-sshd - docker pull postgres:9.5 +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)