-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (37 loc) · 913 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
language: go
stages:
- test
- ship
jobs:
include:
- stage: test
os: linux
go: master
env: TARGET=kafka-test
- os: linux
go: master
env: TARGET=go-test
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: ship
if: branch = master
os: linux
go: master
env: TARGET=docker-push-local
script: make docker-push-local docker-version=latest
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- stage: ship
if: branch != master
os: linux
go: master
env: TARGET=docker-push-local
script: make docker-push-local docker-version=$TRAVIS_BRANCH
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
addons:
hosts:
- kafka
services:
- docker
script: make $TARGET