os:
 - linux
sudo: required
dist: trusty
language: go
go:
 - "1.11"
 - "1.12"
 - master
env:
- GO111MODULE=on
services:
 - docker
before_install:
 - sudo apt-get -qq update
 - sudo apt-get install -y libsystemd-journal-dev
install:
 - mkdir -p $HOME/gopath/src/k8s.io
 - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/node-problem-detector
 - cd $HOME/gopath/src/k8s.io/node-problem-detector
script:
 - make
 - make test
 - make clean && BUILD_TAGS="disable_custom_plugin_monitor" make
 - BUILD_TAGS="disable_custom_plugin_monitor" make test
 - make clean && BUILD_TAGS="disable_system_log_monitor" make
 - BUILD_TAGS="disable_system_log_monitor" make test
 - make clean && BUILD_TAGS="disable_system_stats_monitor" make
 - BUILD_TAGS="disable_system_stats_monitor" make test
 - make clean && BUILD_TAGS="disable_stackdriver_exporter" make
 - BUILD_TAGS="disable_stackdriver_exporter" make test
 - make clean && ENABLE_JOURNALD=0 make
 - ENABLE_JOURNALD=0 make test
