forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (56 loc) · 2.38 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
67
68
69
sudo: required
services:
- docker
language: go
go:
- 1.5.1
os:
- linux
- osx
env:
- TARGETS="-C libbeat check"
# - TARGETS="testsuite ES_HOST=elasticsearch-173"
- TARGETS="-C libbeat testsuite ES_HOST=elasticsearch-210"
- TARGETS="-C libbeat crosscompile"
- TARGETS="-C topbeat check testsuite"
- TARGETS="-C filebeat check testsuite"
- TARGETS="-C filebeat crosscompile"
- TARGETS="-C packetbeat check testsuite"
matrix:
exclude:
- os: osx
env: TARGETS="-C filebeat crosscompile"
- os: osx
env: TARGETS="-C libbeat crosscompile"
- os: osx
env: TARGETS="-C libbeat testsuite ES_HOST=elasticsearch-210"
addons:
apt:
packages:
- python-virtualenv
- libpcap-dev
- geoip-database
before_install:
# Redo the travis setup but with the elastic/libbeat path. This is needed so the package path is correct
- mkdir -p $HOME/gopath/src/github.com/elastic/beats/
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/elastic/beats/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/elastic/beats/
- cd $HOME/gopath/src/github.com/elastic/beats/
# Docker-compose installation
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# TODO: needed ?
addonsbefore_install:
- ln -s $TRAVIS_BUILD_DIR $HOME/gopath/src/libbeat
install:
- true
script:
- make $TARGETS
notifications:
hipchat:
rooms:
secure: a1I6JFPxezdKC4+TYJwMbl3I0nRo9QieVAG423jJTBL/dkZwxT7kwqG8N3byoGJscpXQdXJoDlM2bs9zmUQnbKWhCn6eUD49e4KUo3d1m2ul4xHNndszyNaE8K18d4bJzlxulULjSvGjV6sl4ewj1HvCjRXkE0jJPtcumTmOwo0TT20+AYEGmK6i3KIJCijsEn5pHN423fD6byMiuPh+HV1yNIzJJHBHqxkrsBvFrIKjUHe6sFt853MgavUqaWwQfVh5PeXvME0UZLkee2ekLyM63JE6RhpD2rVg+vFKU+hP1KKWZZMRkD5Jhy5M4EupPcEzbg2dYHLa4f7rRdin367AggLh+lNB0c2/rxo2yl5P9Oq9GR+AqhObE9nAFWmgD4IprD1uyoflifNG4/3FYIMG5TrJKG3EW0uLZFvamydW2LDOvT2OMwkFAqDawrpWn7045vV6QEKZUWAYSf/VjN2MwHnuCB058OBe+jr2BlJlUBAgPgUWNEDVNqhPY/rbD6hUuRH8pcK4DrxnagGgneJlGfXJ3cMHBIAcoHgrF//0AsM3DJ8WAdKoKTHkPDQb9RLAUyD9N/cMntRzcQsJfclFFB/Nr2rzPxyXwsESaWEPByJ26gZy/Q/Zq+VRbZCpJQru89kdmuoi03wHkCbOmAx7f4p2earoqHJMEk5yfVU=
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