forked from mailru/go-clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 823 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
30
31
sudo: required
notifications:
email: false
language: go
go:
- 1.8
- 1.9
- "1.10"
services:
- docker
before_install:
- travis_retry docker pull yandex/clickhouse-server
- docker run -d -p 127.0.0.1:8123:8123 --name dbr-clickhouse-server yandex/clickhouse-server
install:
- travis_retry go get -u github.com/golang/lint/golint
- travis_retry go get github.com/mattn/goveralls
- travis_retry go get golang.org/x/tools/cmd/cover
- travis_retry go get github.com/stretchr/testify
before_script:
- export TEST_CLICKHOUSE_DSN="http://localhost:8123/default"
script:
- test -z "$(golint ./... | tee /dev/stderr)"
- go vet ./...
- test -z "$(gofmt -d -s . | tee /dev/stderr)"
- go test -v -covermode=count -coverprofile=coverage.out .
- goveralls -coverprofile=coverage.out -service=travis-ci