language: go

go:
  - 1.9.x
  - master

cache:
  directories:
  - $GOPATH/src
  - $HOME/.glide/cache

install:
  - go get -u github.com/Masterminds/glide 
  - cd $GOPATH/src/github.com/Masterminds/glide && go install && cd -
  - glide install
  - cd vendor/github.com/onsi/gomega && go install && cd -
  - cd vendor/github.com/onsi/ginkgo/ginkgo && go install && cd -

script:
  - ginkgo -r --randomizeAllSpecs --randomizeSuites --race
