language: go
sudo: false

env:
  global:
    - CURRENT_GO_VERSION="1.7.1"

go:
  - 1.6.3
  - 1.7.1
  - tip

before_install:
  - go get github.com/modocache/gover
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/kisielk/errcheck

script:
  - go test -v . ./cmd/...
  - if [ "$TRAVIS_GO_VERSION" = "$CURRENT_GO_VERSION" ]; then go test -race -v . ./cmd/html2data; fi
  - go vet . ./cmd/...
  - errcheck . ./cmd/...
  - diff <(gofmt -d .) <(echo -n "")
  - go test -coverprofile=cmd.coverprofile ./cmd/html2data
  - go test -coverprofile=main.coverprofile
  - $HOME/gopath/bin/gover
  - if [ "$TRAVIS_GO_VERSION" = "$CURRENT_GO_VERSION" ]; then
      $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci || true;
    fi

language: go
sudo: false

env:
  global:
    - CURRENT_GO_VERSION="1.7.1"

go:
  - 1.6.3
  - 1.7.1
  - tip

before_install:
  - go get github.com/mattn/goveralls
  - go get github.com/philwinder/gocoverage
  - go get github.com/kisielk/errcheck

script:
  - go test -v . ./cmd/...
  - if [ "$TRAVIS_GO_VERSION" = "$CURRENT_GO_VERSION" ]; then go test -race -v . ./cmd/...; fi
  - go vet . ./cmd/...
  - errcheck . ./cmd/...
  - diff <(gofmt -d .) <(echo -n "")
  - if [ "$TRAVIS_GO_VERSION" = "$CURRENT_GO_VERSION" ]; then
      gocoverage && goveralls -coverprofile=profile.cov -service=travis-ci || true;
    fi

Use gocoverage for test coverage
Use gocoverage for test coverage
