forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (38 loc) · 1.2 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
language: go
os:
- linux
- osx
go:
- 1.5.1
env:
- TARGETS="check testsuite"
# - TARGETS="crosscompile"
# Only execute the crosscompile target one time during the build.
#matrix:
# exclude:
# - os: osx
# env: TARGETS="crosscompile"
sudo: false
addons:
apt:
packages:
- libpcap-dev
- python-virtualenv
- geoip-database
before_install:
# Redo the travis setup but with the elastic/packetbeat path. This is needed so the package path is correct
- mkdir -p $HOME/gopath/src/github.com/elastic/packetbeat
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/elastic/packetbeat/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/elastic/packetbeat
- cd $HOME/gopath/src/github.com/elastic/packetbeat
install:
- make
script:
- make $TARGETS
notifications:
hipchat:
rooms:
secure: NSmM7x2n9KdasEzZJ2BZZdXNUqBG3MFnwmvHN7kVRAbdmygD6YDaIBhbjNhTxrYQw2JPJxxa6ehr9xsMDzoCdGygBoKsa1U5kGK942JgoCbJrtbR0K7r8toWPuOg+wPGS0muOVwqRW5iO9AkTQiPcvIP+a1E80vuNH/ZKWPg5JA=
after_success:
# Copy profile.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