-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
56 lines (43 loc) · 1.3 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
sudo: required
dist: trusty
services:
- docker
language: go
go:
- 1.9
os:
- linux
- osx
env:
matrix:
- TARGETS="ci"
- TARGETS="crosscompile"
global:
# Cross-compile for amd64 only to speed up testing.
- GOX_FLAGS="-arch amd64"
- DOCKER_COMPOSE_VERSION: 1.9.0
matrix:
exclude:
- os: osx
env: TARGETS="crosscompile"
addons:
apt:
packages:
- python-virtualenv
before_install:
# Redo the travis setup but with the christiangalsterer/httpbeat path. This is needed so the package path is correct
- mkdir -p $HOME/gopath/src/github.com/christiangalsterer/httpbeat
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/christiangalsterer/httpbeat/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/christiangalsterer/httpbeat
- cd $HOME/gopath/src/github.com/christiangalsterer/httpbeat
# 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
install:
- true
script:
- make $TARGETS
after_success:
- test -f build/coverage/full.cov && bash <(curl -s https://codecov.io/bash) -f build/coverage/full.cov