-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
44 lines (38 loc) · 932 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
32
33
34
35
36
37
38
39
40
41
42
43
44
language: go
go: 1.12.5
stages:
- test
- build
- deploy
before_install:
- git clone https://github.com/edenhill/librdkafka.git
- cd librdkafka
- ./configure --prefix /usr
- make
- sudo make install
before_script:
- cd $KAFQA_DIR
env:
PRODUCER_KAFKA_BROKERS="localhost:9092"
CONSUMER_KAFKA_BROKERS="localhost:9092"
GO111MODULE=on
KAFQA_DIR=$(pwd)
jobs:
include:
- stage: test
name: "Unit tests"
script: pwd && ls ./agent/testdata/ && ls ./agent && make test
- script: make testcodecov
name: "Unit tests code coverage"
- script: make check-quality
name: "Check code quality"
- script: make golangci
name: "Run Golangci"
- stage: build
script: make clean build
- stage: deploy
if: tag is PRESENT
script:
- curl -sL https://git.io/goreleaser | bash -s -- --debug
after_success:
- bash <(curl -s https://codecov.io/bash)