From 44f38ad0494913df9224598b919fdf4b7ca3d713 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 31 Aug 2018 21:33:30 +0200 Subject: [PATCH] Travis: Also cache on Darwin --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index bbee9f3ad..61fe94eba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,19 +6,31 @@ matrix: - os: linux go: "1.9.x" env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0 + cache: + directories: + - $HOME/.cache/go-build - os: linux go: "1.10.x" env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 + cache: + directories: + - $HOME/.cache/go-build # only run fuse and cloud backends tests on Travis for the latest Go on Linux - os: linux go: "1.11.x" sudo: true + cache: + directories: + - $HOME/.cache/go-build - os: osx go: "1.11.x" env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 + cache: + directories: + - $HOME/Library/Caches/go-build branches: only: @@ -32,10 +44,6 @@ notifications: on_failure: change skip_join: true -cache: - directories: - - $HOME/.cache/go-build - install: - go version - export GOBIN="$GOPATH/bin"