Skip to content

Commit 79ab972

Browse files
authored
Merge pull request #2 from octo/travis-ci
.travis.yml: Add initial config for Travis CI.
2 parents ddb947e + e1c3b21 commit 79ab972

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Request newer Ubuntu version. Xenial (current default) ships collectd 5.5, which is too old.
2+
dist: bionic
3+
language: go
4+
5+
go:
6+
- "stable"
7+
# - "oldstable" # https://github.com/travis-ci/gimme/issues/179
8+
- "master"
9+
10+
before_install:
11+
- sudo apt-get -y install collectd-dev
12+
13+
env:
14+
- CGO_ENABLED=1 CGO_CPPFLAGS="-I/usr/include/collectd/core/daemon -I/usr/include/collectd/core -I/usr/include/collectd"
15+
16+
matrix:
17+
allow_failures:
18+
- go: master
19+
20+
#before_script:
21+
- go get golang.org/x/lint/golint
22+
23+
script:
24+
- go test -v -coverprofile=/dev/null ./...
25+
- go vet ./...
26+
- golint -set_exit_status ./...

0 commit comments

Comments
 (0)