language: go

go:
  - 1.10.x
  - 1.11.x

branches:
  only:
    - master

install:
  - make bin
  - make get-tools

script:
  - make test

language: go

go:
  - 1.11.4

branches:
  only:
    - master

install:
  - make get-tools
  - make bin

env:
  - GO111MODULE=on # Enable Go modules in 1.11

script:
  - make test

Update Travis for go modules
Update Travis for go modules

- Adds env var to turn it on
- Uses only Go 1.11.4:
-- 1.10 doesn't support modules
-- < 1.11.4 had some bugs that cause modified checksums starting at
1.11.4
-- Since Consul is now using 1.11.4 for building, this should be safe
- Fixes ordering of install block to get tools before making bin
