From 53358d32be33402a9c16ba29b6e4dd10292456b0 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 8 Jan 2019 16:57:33 +1100 Subject: [PATCH] Add pkg/mod caching --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b3a38458..118ed967 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,15 +23,21 @@ jobs: - checkout - run: sudo apt-get update - run: sudo apt install fuse pv + - restore_cache: + keys: + - go-mod - run: go get ./... - run: go test -v -race ./... -count 2 - run: go test -bench . ./... - # - run: CGO_ENABLED=0 go get -t -d -v $PROJECT_GO_PACKAGE/... - run: set +e; CGO_ENABLED=0 go test -v ./...; true - run: go install golang.org/x/mobile/cmd/gomobile - run: gomobile init - run: gomobile build -target=android $PROJECT_GO_PACKAGE # - run: GO111MODULE=off go install github.com/anacrolix/godo - run: go install ./cmd/torrentfs + - save_cache: + key: go-mod + paths: + - $GOPATH/pkg/mod - run: sudo modprobe fuse - run: fs/test.sh -- 2.48.1