From 56b22663c35f0e2694efb6325e8db3269fae95f3 Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Sat, 16 Sep 2017 22:55:56 +0200 Subject: [PATCH] caching in travis --- .travis.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22cadbe..4e810e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 +