Skip to content

Commit

Permalink
travis: add cache for $GOPATH/{pkg,bin}
Browse files Browse the repository at this point in the history
Also fix build steps.
  • Loading branch information
Francisco Souza committed Feb 11, 2019
1 parent 3fbba6e commit 84bc8d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ addons:
packages:
- redis-server
- docker-ce
cache:
directories:
- $GOPATH/pkg
- $GOPATH/bin
services:
- redis-server
env:
global:
- GO111MODULE=on
- GO_FOR_RELEASE=1.x
- CGO_ENABLED=0
go:
- 1.x
- tip
install:
- unset GOPATH
- make testdeps
script:
- unset GOPATH
- export PATH=$PATH:$(go env GOPATH)/bin
- make coverage
- go build -o video-transcoding-api
after_success:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: test

testdeps:
GO111MODULE=off go get github.com/go-swagger/go-swagger/cmd/swagger
GO111MODULE=off go get github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/golangci/golangci-lint/cmd/golangci-lint@master
go mod download

lint: testdeps
Expand Down

0 comments on commit 84bc8d1

Please sign in to comment.