caching in travis

master
Carlo Strub 7 years ago
parent e281d27797
commit 56b22663c3

@ -4,18 +4,23 @@ go:
- 1.9.x
- master
#cache:
# directories:
# - $GOPATH/src
# - $GOPATH/pkg
# - vendor
cache:
directories:
- $GOPATH/src/github.com/Masterminds/glide
- $HOME/.glide/cache
install:
- go get -u github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && go install && cd -
- glide install
- go get -u github.com/onsi/gomega
- go get -u github.com/onsi/ginkgo/ginkgo
- cd vendor/github.com/onsi/gomega && go install && cd -
- cd vendor/github.com/onsi/ginkgo/ginkgo && go install && cd -
script:
- ginkgo -r --randomizeAllSpecs --randomizeSuites
- ginkgo -r --randomizeAllSpecs --randomizeSuites --race
cache:
directories:
- $GOPATH/src/github.com/Masterminds/glide
- $HOME/.glide/cache

Loading…
Cancel
Save