-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (38 loc) · 1.01 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
sudo: required
dist: trusty
services:
- docker
language: go
go:
- 1.13.8
os:
- linux
- osx
env:
matrix:
- TARGETS="check"
- TARGETS="testsuite"
global:
# Cross-compile for amd64 only to speed up testing.
- GOX_FLAGS="-arch amd64"
- MACOSX_DEPLOYMENT_TARGET=10.15
addons:
apt:
update: true
packages:
- python-virtualenv
before_install:
- python --version
- umask 022
# 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/radoondas/earthquakebeat/
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/radoondas/earthquakebeat/
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/radoondas/earthquakebeat/
- cd $HOME/gopath/src/github.com/radoondas/earthquakebeat/
- if [ $TRAVIS_OS_NAME = osx ]; then pip install virtualenv; fi
install:
- true
script:
- make $TARGETS
after_success:
# Copy full.cov to coverage.txt because codecov.io requires this file