diff --git a/.travis.yml b/.travis.yml index 89b267239..257c3fa62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - tip + - tip branches: only: @@ -9,4 +9,6 @@ branches: install: make deps script: - - make test + - make test + +sudo: false diff --git a/command/agent/syslog_test.go b/command/agent/syslog_test.go index 707570319..0990a081d 100644 --- a/command/agent/syslog_test.go +++ b/command/agent/syslog_test.go @@ -1,6 +1,7 @@ package agent import ( + "os" "runtime" "testing" @@ -10,8 +11,12 @@ import ( func TestSyslogFilter(t *testing.T) { if runtime.GOOS == "windows" { - t.SkipNow() + t.Skip("Syslog not supported on Windows") } + if os.Getenv("TRAVIS") == "true" { + t.Skip("Syslog not supported on travis-ci") + } + l, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "LOCAL0", "consul") if err != nil { t.Fatalf("err: %s", err)