Skip to content

Commit 3a40767

Browse files
authored
Cache expensive Go compilation and linting (#3341)
Signed-off-by: David Gageot <[email protected]>
1 parent 04ccb76 commit 3a40767

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,38 @@ jobs:
1515
include:
1616
- os: linux
1717
name: "checks"
18+
env:
19+
- STATICCHECK_CACHE=$HOME/linting
1820
script:
1921
- make checks
22+
cache:
23+
directories:
24+
- $STATICCHECK_CACHE
25+
- $HOME/.cache/go-build
2026
- os: linux
2127
name: "Linux unit"
2228
script:
2329
- make coverage
30+
cache:
31+
directories:
32+
- $HOME/.cache/go-build
2433
- os: osx
2534
name: "OSX unit"
2635
script:
2736
- make quicktest
37+
cache:
38+
directories:
39+
- $HOME/.cache/go-build
2840
- os: windows
2941
name: "Windows unit"
3042
env:
3143
- GO111MODULE=on
3244
- GOFLAGS="-mod=vendor"
3345
script:
3446
- go test -short -timeout 60s ./...
47+
cache:
48+
directories:
49+
- C:\\Users\\travis\\AppData\\Local\\go-build
3550
- os: linux
3651
name: "integration"
3752
language: minimal

0 commit comments

Comments
 (0)