forked from lodastack/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
17 lines (16 loc) · 798 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
machine:
environment:
GODIST: "go1.7.4.linux-amd64.tar.gz"
# GOROOT is not set by default
GOROOT: ""
PATH: "/usr/local/go/bin:/usr/local/go_workspace/bin:~/.go_workspace/bin:${PATH}"
GOPATH: "${HOME}/.go_workspace:/usr/local/go_workspace:${HOME}/.go_project"
post:
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
test:
override:
- mkdir -p ${HOME}/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME;cp -r ${HOME}/$CIRCLE_PROJECT_REPONAME ${HOME}/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME;bash circle-test.sh:
parallel: true