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

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.11.1
        - wget https://github.com/Masterminds/glide/releases/download/0.11.1/glide-0.11.1-linux-amd64.tar.gz
        - tar -vxz -C $HOME/bin --strip=1 -f glide-0.11.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 -v -coverprofile=coverage.txt -covermode=atomic
        - go build example.go
        - bash <(curl -s https://codecov.io/bash)

Add coverage via codecov, new version of glide
Add coverage via codecov, new version of glide
