mirror of
https://github.com/muesli/kmeans.git
synced 2025-10-05 15:46:54 +08:00
Enable Go modules for TravisCI
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -5,22 +5,25 @@ os:
|
|||||||
- osx
|
- osx
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.9.x
|
|
||||||
- 1.10.x
|
|
||||||
- 1.11.x
|
- 1.11.x
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
|
- 1.13.x
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
GO111MODULE=on
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
|
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test -v -tags ci ./...
|
- go test -v -tags ci ./...
|
||||||
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci -ignore="examples/colorpalette/main.go,examples/simple/main.go"; fi
|
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then $GOPATH/bin/goveralls -service=travis-ci -ignore="examples/colorpalette/main.go,examples/simple/main.go"; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
Reference in New Issue
Block a user