зеркало из https://github.com/golang/dep.git
21 строка
921 B
YAML
21 строка
921 B
YAML
machine:
|
|
environment:
|
|
GO15VENDOREXPERIMENT: 1
|
|
checkout:
|
|
post:
|
|
dependencies:
|
|
override:
|
|
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
|
|
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
|
# Glide 0.10.1
|
|
- wget https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz
|
|
- tar -vxz -C $HOME/bin --strip=1 -f glide-0.10.1-linux-amd64.tar.gz
|
|
# Fetch deps with glide
|
|
- glide --home $HOME/.glide -y glide.yaml install --cache
|
|
cache_directories:
|
|
- "~/.glide"
|
|
test:
|
|
override:
|
|
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go test
|
|
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go build example.go
|