github.com/sdboyer/gps@v0.16.3/circle.yml (about) 1 machine: 2 environment: 3 GO15VENDOREXPERIMENT: 1 4 PROJECT_ROOT: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME" 5 RD: "$HOME/.go_workspace/src/$PROJECT_ROOT" 6 dependencies: 7 pre: 8 - wget https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz 9 - tar -vxz -C $HOME/bin --strip=1 -f glide-0.10.1-linux-amd64.tar.gz 10 - sudo apt-get install bzr subversion 11 override: 12 - mkdir -p $HOME/.go_workspace/src 13 - glide --home $HOME/.glide -y glide.yaml install --cache 14 - mkdir -p $RD 15 - rsync -azC --delete ./ $RD 16 #- ln -Tsf "$HOME/$CIRCLE_PROJECT_REPONAME" "$HOME/.go_workspace/src/$PROJECT_ROOT" 17 cache_directories: 18 - "~/.glide" 19 test: 20 pre: 21 - go vet 22 override: 23 - | 24 cd $RD && \ 25 echo 'mode: atomic' > coverage.txt && \ 26 go list ./... | grep -v "/vendor/" | \ 27 xargs -n1 -I% sh -c 'set -e; go test -covermode=atomic -coverprofile=coverage.out % ; tail -n +2 coverage.out >> coverage.txt' && \ 28 rm coverage.out 29 - cd $RD && go build example.go 30 - cd $RD && bash <(curl -s https://codecov.io/bash)