* Moving from govendor to dep. * Making the pull request template more friendly. * Fixing akward space in PR template. * goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")` source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
31 lines
751 B
YAML
31 lines
751 B
YAML
language: go
|
|
go:
|
|
- 1.9
|
|
|
|
jdk:
|
|
- oraclejdk9
|
|
|
|
sudo: false
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
before_install:
|
|
- wget http://apache.cs.utah.edu/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz
|
|
- tar -zxvf zookeeper*tar.gz
|
|
- go get github.com/mattn/goveralls
|
|
- go get golang.org/x/tools/cmd/cover
|
|
|
|
script:
|
|
- jdk_switcher use oraclejdk9
|
|
- go build ./...
|
|
- go fmt ./...
|
|
- go vet ./...
|
|
- go test -i -race ./...
|
|
- go test -race -covermode atomic -coverprofile=profile.cov ./zk
|
|
- goveralls -coverprofile=profile.cov -service=travis-ci
|
|
|
|
env:
|
|
global:
|
|
secure: Coha3DDcXmsekrHCZlKvRAc+pMBaQU1QS/3++3YCCUXVDBWgVsC1ZIc9df4RLdZ/ncGd86eoRq/S+zyn1XbnqK5+ePqwJoUnJ59BE8ZyHLWI9ajVn3fND1MTduu/ksGsS79+IYbdVI5wgjSgjD3Ktp6Y5uPl+BPosjYBGdNcHS4=
|