2017-02-13 09:25:50 -08:00
|
|
|
machine:
|
|
|
|
environment:
|
|
|
|
GOPATH: /home/ubuntu/.go_workspace
|
|
|
|
REPO: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
|
|
|
hosts:
|
|
|
|
circlehost: 127.0.0.1
|
|
|
|
localhost: 127.0.0.1
|
|
|
|
|
|
|
|
checkout:
|
|
|
|
post:
|
|
|
|
- rm -rf $REPO
|
|
|
|
- mkdir -p $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
|
|
|
|
- mv $HOME/$CIRCLE_PROJECT_REPONAME $REPO
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
- go get github.com/Masterminds/glide
|
|
|
|
- go version
|
|
|
|
- glide --version
|
2017-02-26 09:52:24 -08:00
|
|
|
- "cd $REPO && glide install && go install ./cmd/basecoin"
|
2017-02-13 09:25:50 -08:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
|
|
|
- "cd $REPO && make test"
|
2017-02-26 09:52:24 -08:00
|
|
|
- "cd $REPO/demo && bash start.sh"
|
2017-02-13 09:25:50 -08:00
|
|
|
|
|
|
|
|