language: go
sudo: false

matrix:
  include:
    - go: 1.4
    - go: 1.5
    - go: 1.6
    - go: tip
  allow_failures:
    - go: tip

script:
  - go get -t -v $(go list ./... | grep -v '/vendor/')
  - diff -u <(echo -n) <(gofmt -d .)
  - go vet $(go list ./... | grep -v '/vendor/')
  - go test -v -race $(go list ./... | grep -v '/vendor/')

notifications:
  email:
    recipients:
      - jamesog@cloudflare.com
      - msilverlock@cloudflare.com

language: go
sudo: false

matrix:
  include:
    - go: 1.4
    - go: 1.5
    - go: 1.6
    - go: tip
  allow_failures:
    - go: tip

install:
  - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go get github.com/golang/lint/golint; fi

script:
  - go get -t -v $(go list ./... | grep -v '/vendor/')
  - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then diff -u <(echo -n) <(gofmt -d .); fi
  - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then go vet $(go list ./... | grep -v '/vendor/'); fi
  - if [[ $TRAVIS_GO_VERSION == 1.6* ]]; then for package in $(go list ./... | grep -v '/vendor/'); do golint -set_exit_status $package; done; fi
  - go test -v -race $(go list ./... | grep -v '/vendor/')

notifications:
  email:
    recipients:
      - jamesog@cloudflare.com
      - msilverlock@cloudflare.com

Add golint to tests run by Travis
Add golint to tests run by Travis

Change static code analysis tests to only run on the latest stable
Go version (currently 1.6) as the results would be the same across
the different versions anyways.
