forked from kubeflow/trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (25 loc) · 1010 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
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
- gometalinter --config=linter_config.json ./pkg/...
# 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.
- $GOPATH/bin/goveralls -service=travis-ci -v -package ./pkg/...