2016-12-02 11:51:44 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2020-02-26 15:22:19 +01:00
|
|
|
- "1.13"
|
2016-12-02 11:51:44 +01:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2017-01-02 15:37:58 +01:00
|
|
|
- TARGETS="ci"
|
2016-12-02 11:51:44 +01:00
|
|
|
|
|
|
|
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/
|
2017-01-02 15:37:58 +01:00
|
|
|
- go get github.com/Masterminds/glide
|
2018-12-20 17:05:22 +01:00
|
|
|
- go get github.com/magefile/mage/mg
|
2020-02-26 15:22:19 +01:00
|
|
|
- go get github.com/sirupsen/logrus
|
2016-12-02 11:51:44 +01:00
|
|
|
|
|
|
|
install:
|
|
|
|
- true
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make $TARGETS
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
# Copy full.cov to coverage.txt because codecov.io requires this file
|