forked from socketplane/socketplane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
37 lines (35 loc) · 1.15 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
machine:
services:
- docker
environment:
DOCKER_IP: "127.0.0.1"
GOPATH: "/home/ubuntu/.go_workspace"
ORG_PATH: "github.com/socketplane"
REPO_PATH: "${ORG_PATH}/socketplane"
dependencies:
override:
- rm -rf ${GOPATH}/src/${REPO_PATH}
- mkdir -p ${GOPATH}/src/${ORG_PATH}
- cp -r ../socketplane ${GOPATH}/src/${ORG_PATH}
- mkdir -p ${CIRCLE_ARTIFACTS}/coverage
- go get github.com/mattn/goveralls
- sudo ln -s /usr/local/go/bin/go /usr/bin/go
post:
- sudo pip install -qq fig:
pwd: ../.go_workspace/src/${REPO_PATH}
- sudo fig up -d:
pwd: ../.go_workspace/src/${REPO_PATH}
test:
override:
- sudo -E make test-local:
pwd: ../.go_workspace/src/${REPO_PATH}
post:
- sudo fig stop:
pwd: ../.go_workspace/src/${REPO_PATH}
- sh tools/combine-coverage.sh:
pwd: ../.go_workspace/src/${REPO_PATH}
- go tool cover -html=coverage.out -o $CIRCLE_ARTIFACTS/coverage/index.html:
pwd: ../.go_workspace/src/${REPO_PATH}
- goveralls -coverprofile=coverage.out -service=circleci -repotoken $COVERALLS_TOKEN:
pwd: ../.go_workspace/src/${REPO_PATH}