dist: trusty
sudo: required
services:
  - docker
language: go
go:
- "1.12.x"
env:
  GOFLAGS=-mod=vendor

git:
  depth: 1

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

script:
- make lint
- make test
- make website-lint
- make website-test

branches:
  only:
  - master
matrix:
  fast_finish: true
  allow_failures:
  - go: tip

dist: xenial
sudo: required
services:
  - docker
language: go
go:
  - "1.12.x"
env: GOFLAGS=-mod=vendor

git:
  depth: 1

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

script:
  - make lint
  - make test
  - make website-lint
  - make website-test

branches:
  only:
    - master
matrix:
  fast_finish: true
  allow_failures:
    - go: tip

Use xenial for TravisCI, format YAML config
tests/provider: Use xenial for TravisCI, format YAML config

Trusty is EOL soon and trying to workaround memory issues:

```
==> Checking source code against linters...
fatal error: runtime: out of memory
```
