-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (55 loc) · 1.67 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
55
56
57
58
59
60
61
62
63
64
65
66
sudo: required
dist: trusty
services:
- docker
language: go
# Make sure project can also be built on travis for clones of the repo
go_import_path: github.com/jahor/rmqbeat
env:
global:
# Cross-compile for amd64 only to speed up testing.
- GOX_FLAGS="-arch amd64"
- DOCKER_COMPOSE_VERSION=1.11.1
- GO_VERSION="$(cat .go-version)"
# Newer versions of minikube fail on travis, see: https://github.com/kubernetes/minikube/issues/2704
- TRAVIS_MINIKUBE_VERSION=v0.25.2
jobs:
include:
# General checks
- os: linux
env: TARGETS="check"
go: $GO_VERSION
stage: check
# Rmqbeat
- os: linux
env: TARGETS="-C rmqbeat testsuite"
go: $GO_VERSION
stage: test
- os: osx
env: TARGETS="TEST_ENVIRONMENT=0 -C rmqbeat testsuite"
go: $GO_VERSION
stage: test
addons:
apt:
update: true
packages:
- python-virtualenv
- libpcap-dev
before_install:
- python --version
- umask 022
- chmod -R go-w $GOPATH/src/github.com/jahor/rmqbeat
- go get -u -v github.com/kardianos/govendor
- cd $GOPATH/src/github.com/jahor/rmqbeat && glide up
# Docker-compose installation
- sudo rm /usr/local/bin/docker-compose || true
- 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
# Skips installations step
install: true
script:
- make $TARGETS
after_success:
# Copy full.cov to coverage.txt because codecov.io requires this file
- test -f build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f build/coverage/full.cov