language: go go: # we cannot enable `gotyp` in gometalinter while at the same time # keep 1.8 here. so I (jiay) went with removing `gotype` for now. # see open issues: # - https://github.com/alecthomas/gometalinter/issues/358 # - https://github.com/golang/go/issues/21712 # TODO jiayu: re-evaluate the pending issues and add back `gotype` - "1.8" - "1.9" - "1.10" go_import_path: github.com/kubeflow/tf-operator install: # get coveralls.io support - go get github.com/mattn/goveralls - go get -u github.com/alecthomas/gometalinter - gometalinter --install script: - go build -o tf-operator github.com/kubeflow/tf-operator/cmd/tf-operator - go build -o tf-operator github.com/kubeflow/tf-operator/cmd/tf-operator - gometalinter --config=linter_config.json --vendor ./... # We customize the build step because by default # Travis runs go test -v ./... which will include the vendor # directory. # With go 1.9 vendor will be automatically excluded. # For now though we just run all tests in pkg. # And we can not use ** because goveralls uses filepath.Match # to match ignore files and it does not support it. - goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/client/*/*.go,pkg/client/*/*/*.go,pkg/client/*/*/*/*.go,pkg/client/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*.go,pkg/client/*/*/*/*/*/*/*.go,pkg/util/testutil/*.go,pkg/apis/tensorflow/*/zz_generated.*.go,pkg/apis/tensorflow/*/*_generated.go" notifications: webhooks: https://www.travisbuddy.com/ on_success: never