From 26e76d217091e521285a735d6484167e6a656239 Mon Sep 17 00:00:00 2001 From: Oliver Steele Date: Wed, 19 Jul 2017 12:49:43 -0400 Subject: [PATCH] Travis cache --- .travis.yml | 10 ++++++++++ Makefile | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78de77b..9bcc07e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,16 @@ go: python: - "3.4" + +cache: + pip: true + directories: + - $GOPATH/src + - $GOPATH/pkg + +before_cache: + - rm -rf $GOPATH/src/github.com/osteele/gojekyll + before_install: - go get github.com/mattn/goveralls diff --git a/Makefile b/Makefile index 26bbe03..0e21307 100644 --- a/Makefile +++ b/Makefile @@ -36,8 +36,8 @@ release: build tar -cvzf dist/$(BINARY)_$(VERSION)_$(OS:GNU/%=%)_$(shell uname -m).tar.gz $(BINARY) setup: ## install dependencies and development tools - go get -t ./... - go get -u github.com/alecthomas/gometalinter + go get -t -u ./... + go get github.com/alecthomas/gometalinter gometalinter --install install: ## compile and install the executable