Skip to content

Commit

Permalink
Speed up travis-ci builds by caching dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dhui committed Jan 20, 2018
1 parent 5360626 commit 4ebf080
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ env:
# TODO: https://docs.docker.com/engine/installation/linux/ubuntu/
# pre-provision with travis docker setup and pin down docker version in install step
services:
- docker
- docker

before_cache:
- rm -rf $GOPATH/src/github.com/golang-migrate
- rm -rf $GOPATH/pkg/**/github.com/golang-migrate

cache:
directories:
- $GOPATH/src
- $GOPATH/pkg

install:
- make deps
Expand All @@ -20,10 +29,10 @@ install:
- go get github.com/mattn/goveralls

script:
- make test
- make test COVERAGE_DIR=/tmp/coverage

after_success:
- goveralls -service=travis-ci -coverprofile .coverage/combined.txt
- goveralls -service=travis-ci -coverprofile /tmp/coverage/combined.txt
- make list-external-deps > dependency_tree.txt && cat dependency_tree.txt

before_deploy:
Expand Down

0 comments on commit 4ebf080

Please sign in to comment.