-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.travis.yml
62 lines (50 loc) · 3.61 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
language: go
os:
- linux
- osx
go:
- 1.5.1
env:
matrix:
- TARGETS="check testsuite"
- TARGETS="crosscompile"
global:
- secure: tbHhtofeRgIJnnWaFr5+Wui9QH96/Jn3qSsG8EuF3HCfoW4cpdBDx8G2buw4Dn6DSD5ZKMlZC5SbYT+3BCs+HUSszscvgr1wd1QDx1sBrUb+3uGI+oj7QnFpS48nrslP+SQIJuYr2HhYNHOWxQerQjxsQ2K184xMhHzW9U8sRjW+/msVCak3vwaXIMlS9+tWS8ImlnzmlDe3sSFm80/cZ7b2+cQQdXqzRAMxl/WGYIwv7z2YMPlNI3DVmtglOXbWusjX4l2a6Q6KBAbZrGH4VMKkTPtkAa32MnEKyBv//LZ1/OV8yYH45TY44tLNn5XD6PwicW6kZFtfGetsABnkkSY42hRyZGAtHLSLRJasD2QZRw9QOUuPToNWEPabcvAqI+GFwpwRFZz1PyAR5s7azhGn2pqLScCXx/ZZv1a6SJPf5R6ZFm5RHekwbUhhbEUela6J7AA9AesEoInJVYr0WIDipgfOyr2tHmm3/TCEA3JOgw5pVdzQ+CBs/DDTxxPZy7D5O+PDa2z/LNMmoWLB7/itA/p/9JRWM56Frj9O9jubEecEC+s/2R55T/x8dLLqS0A2f+eiMjs9++1uVjKE7ySny6IzsxL9hfeF8hhhps6hyBM8+nNmHZSAC2CZn0uWdMkaSvlTygQFatr2bgCTwKfniObJDjqAwZk4hmqCHuA=
- secure: xa1XNko/KMiHjHwbJyit1bndYWK4Ci3kUd+9L2dxzHXUPK0t/cfLGslKkavY1lYJ9D88iNov01tDPA3iTnFt/k773TRFPMc/taGxv2h0AFMFMqx6zE+qhYe5plTEpisH6SZ6l1vosIR2S4NzmFBtNkY9AedwuUZiNaeMS/l5BdG8o53e/e8jpCFCeN1WMiYqB+iIn99zJVYKsmq9lfIJdZOZR/uqTWf8t3NODHws6+8T0JUOsnfVcX+ithYqI69V2q6/hdfTmNKaKxcf7jfpBAlE/VRTHFan0QVFn6L0VtrNF3X/nqkONV87jeQlPiaBacU8j6agWlUiOudOFy/LKQivoA12W87tuA7wSnX0eg+OXba8e2LlwgcaRyPFdYWU3GNJ940HX89S9GlNuGKJHe6sf9E9ItMdJwb+k3Db7lLUdnr9tMEQGEwp6rMSYk2x/1QgjRSg5QSpg2oZpV06zyuRiU1oIzO5TU3+PbrPyymD0Q1ew2m84bXfM17OYPgDFZCA0afJDUR2XQLkFV2iy77JhSqHymgMfOw79/v14fwnGbSkC+mbvLIrM2uTiB6nhUJ5sHiPTopysdl4B9y4Kw2TG/Krd1pWisiAIgmfAP3djAjA13Swfkj77vOVKExy7ABPRDK7SLu6cxfLeJCEwu/VHlijCMJHCxQv8TPZzy0=
# Only execute the crosscompile target one time during the build.
matrix:
exclude:
- os: osx
env: TARGETS="crosscompile"
sudo: false
addons:
apt:
packages:
- python-virtualenv
- geoip-database
before_install:
- pip install --user awscli
- export PATH=$PATH:$(python -m site --user-base)/bin
# Redo the travis setup but with the elastic/filebeat path. This is needed so the package path is correct
- mkdir -p $HOME/gopath/src/github.com/elastic/filebeat
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/elastic/filebeat/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/elastic/filebeat
- cd $HOME/gopath/src/github.com/elastic/filebeat
install:
- make
script:
- make $TARGETS
notifications:
hipchat:
rooms:
secure: AvDY1qPSt+eeZk6AtOlaQMHqJnRc9wL8NtMT2NoXvCc0yAewOeeSAjIDhlm/+kMisV9o56pBLD3TWSi9IC4fesEucGkKsQ3JDTwEhWFCeVN8njnmzCZ3wSlg2WvdkfFhrjpY4kxYIlJw+Mp4T/ZW87EqcNwbOfSm1/cXQdAa8IqZ2bwdyfvgLugEI0OTg2qvA4N/J/wx1sUyM4/PP9LKGAeerlwuWLOSHaX5AEqyzLEUuKapHK92cyBPqtzFpi8+kFnKhIMMbPqmcSV5wdxHKWEALOLBbaNTiuC4TWkdNm1fEKqns/rU60Z4AhyLjbeRHsdqc50urwbNwMfOc96BvoQV3gxOfBD2nmkmm0FKiRyMVB71KLXSG3tkOoEu7bUDxWHAucDC+3F4cDwRF3sSGxX1EwneceV6jdt+V0U+gFXHo4CoC/riYFiTR4I1QA94/K5paKBxICdN+/ooscqqhI80YztmyaOtkbWROXd0Of5+jHdb11uOjgsCgJUNXN3ve5Z9RYJTQxwRRKtKGj7HEWKUOr9GwGbCg81V4IxGHYwWW+vwX7XjXzwoDK6hI4sf9fz+Mc4VGtPeGl8zZ6mjxsKn1UPI94Mb2tAShA3LRas6O4MFS+ANHFnxa4vTU7lGcXNdaQU6Xveqk4Y6XbvP6Ag+woQF3ThyzBObT4Pw2nM=
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
after_script:
# Only publish non-pull request builds because credentials are required.
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "elastic/filebeat" ] && [ -e "build/system-tests/run" ] ; then
export OUTPUT_FILE="system-test-output_job-$TRAVIS_JOB_NUMBER-$TRAVIS_BUILD_ID.zip";
zip -r $OUTPUT_FILE build/system-tests/run;
aws s3 cp $OUTPUT_FILE s3://beats-nightlies/travis-ci/filebeat/$TRAVIS_BUILD_NUMBER/ --acl public-read;
fi