travis: use build caching and don't force complete rebuild
MODIFY
.travis.yml
.travis.yml
@@ -16,6 +16,14 @@ env:
- TAGS="-tags noasm"
- TAGS="-tags appengine"
+cache:
+ directories:
+ - $HOME/.cache/go-build
+ - $HOME/gopath/pkg/mod
+
+git:
+ depth: 1
+
matrix:
fast_finish: true
allow_failures:
@@ -48,7 +56,7 @@ script:
- ${TRAVIS_BUILD_DIR}/.travis/check-formatting.sh
- go get -d -t -v ./...
- go build -v ./...
- - go test -a $TAGS -v ./...
+ - go test $TAGS -v ./...
- if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash ./.travis/test-coverage.sh; fi
- ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh
# This is run last since it alters the tree.

travis: use build caching and don't force complete rebuild