dist: xenial
sudo: required
services:
  - docker
language: go

git:
  depth: 1

env:
  global:
    GOFLAGS=-mod=vendor

matrix:
  fast_finish: true
  allow_failures:
    - go: tip
  include:
  - go: "1.12.x"
    name: "Code Lint"
    script: make lint
  - go: "1.12.x"
    name: "Code UnitTest"
    script: make test
  - go: "1.12.x"
    name: "Website"
    script:
      - make website-test
      - make website-lint

install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- make tools

branches:
  only:
    - master

dist: xenial
sudo: required
services:
  - docker
language: go

env:
  global:
    GOFLAGS=-mod=vendor

matrix:
  fast_finish: true
  allow_failures:
    - go: tip
  include:
  - go: "1.12.x"
    name: "Code Lint"
    script: make lint
  - go: "1.12.x"
    name: "Code UnitTest"
    script: make test
  - go: "1.12.x"
    name: "Website"
    script:
      - make website-test
      - make website-lint

install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- make tools

branches:
  only:
    - master

Remove clone depth 1 on Travis CI
Remove clone depth 1 on Travis CI

As discussed, this only saved a few seconds per build and ends up causing problems sometimes with successive merges.