language: go
go_import_path: github.com/kardianos/service
sudo: required

go:
  - 1.10.x
  - 1.11.x
  - master

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

script:
  - chmod +x linux-test-su.sh
  - sudo ./linux-test-su.sh $GOPATH `which go`
  - $GOPATH/bin/goveralls -service=travis-ci
