forked from stoewer/go-nakadi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (41 loc) · 1.2 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
sudo: required
language: go
go:
- '1.12'
services:
- docker
addons:
hosts:
- localhost
env:
global:
- GO111MODULE=on
- DOCKER_COMPOSE_VERSION="1.22.0"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- docker --version
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- git clone https://github.com/zalando/nakadi.git nakadi
- GO111MODULE=off go get github.com/alecthomas/gometalinter
- GO111MODULE=off gometalinter --install --force
- go get github.com/mattn/goveralls
before_script:
- sudo /etc/init.d/postgresql stop
- (cd nakadi && ./gradlew startNakadi)
script:
- go mod vendor -v
- GO111MODULE=off gometalinter --config=.gometalinter.json --deadline=10m .
- go test -mod=readonly -v -tags=integration -coverprofile=profile.cov ./...
after_script:
- (cd nakadi && ./gradlew stopNakadi)
after_success:
- goveralls -coverprofile=profile.cov -service=travis-ci