44 lines
890 B
YAML
44 lines
890 B
YAML
sudo: required
|
|
dist: trusty
|
|
services:
|
|
- docker
|
|
|
|
language: go
|
|
|
|
go:
|
|
- "1.10"
|
|
|
|
os:
|
|
- linux
|
|
|
|
env:
|
|
matrix:
|
|
- TARGETS="ci"
|
|
|
|
global:
|
|
# Cross-compile for amd64 only to speed up testing.
|
|
- GOX_FLAGS="-arch amd64"
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-virtualenv
|
|
|
|
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/icinga/icingabeat/
|
|
- rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/icinga/icingabeat/
|
|
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/icinga/icingabeat/
|
|
- cd $HOME/gopath/src/github.com/icinga/icingabeat/
|
|
- go get github.com/Masterminds/glide
|
|
- go get github.com/magefile/mage/mg
|
|
|
|
install:
|
|
- true
|
|
|
|
script:
|
|
- make $TARGETS
|
|
|
|
after_success:
|
|
# Copy full.cov to coverage.txt because codecov.io requires this file
|