forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
22 lines (20 loc) · 812 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
machine:
environment:
GITHUB_PROJECT_USERNAME: pingcap
GITHUB_PROJECT_REPONAME: tidb
GODIST: "go1.8.1.linux-amd64.tar.gz"
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
dependencies:
cache_directories:
- ~/download
override:
- mkdir -p $HOME/.go_project/src/github.com/$GITHUB_PROJECT_USERNAME
- ln -fs $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_project/src/github.com/$GITHUB_PROJECT_USERNAME/$GITHUB_PROJECT_REPONAME
- echo 'export GOPATH=$GOPATH:$HOME/.go_project' >> ~/.circlerc
test:
override:
- cd $HOME/.go_project/src/github.com/$GITHUB_PROJECT_USERNAME/$GITHUB_PROJECT_REPONAME && make dev