mirror of
https://github.com/muesli/kmeans.git
synced 2024-05-25 10:23:35 +08:00
Added .travis.yml
This commit is contained in:
parent
4fad701c2a
commit
3be43d2a59
42
.travis.yml
Normal file
42
.travis.yml
Normal file
@ -0,0 +1,42 @@
|
||||
language: go
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
go:
|
||||
- 1.2.x
|
||||
- 1.3.x
|
||||
- 1.4
|
||||
- 1.5.x
|
||||
- 1.6.x
|
||||
- 1.7.x
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- tip
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- os: osx
|
||||
go: 1.2.x
|
||||
- os: osx
|
||||
go: 1.3.x
|
||||
- os: osx
|
||||
go: 1.4
|
||||
- os: osx
|
||||
go: 1.5.x
|
||||
- os: osx
|
||||
go: 1.6.x
|
||||
|
||||
before_install:
|
||||
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
|
||||
|
||||
script:
|
||||
- go test -v -tags ci ./...
|
||||
- if [[ $TRAVIS_GO_VERSION == 1.10* ]]; then $GOPATH/bin/goveralls -service=travis-ci -ignore="examples/colorpalette/main.go"; fi
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: change
|
||||
on_failure: always
|
Loading…
Reference in New Issue
Block a user