forked from gosnmp/gosnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 926 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: go
# https://tinyurl.com/yb84s376 "SO which GOARCH's should be tested?"
# for the moment, do 3 major releases, until next RC comes out
go:
- 1.8
- 1.9
- "1.10"
env:
global:
- GOSNMP_TARGET=127.0.0.1
- GOSNMP_PORT=161
matrix:
# I can build non-Linux platforms here, but how would I put the binary on
# other platforms to run the tests? Would that provide value?
- GOOS=linux TRAVIS_GOARCH=amd64
- GOOS=linux TRAVIS_GOARCH=386
before_install:
- sudo apt-get update -qq
- sudo apt-get install snmpd
- export GOARCH=$TRAVIS_GOARCH # https://github.com/travis-ci/travis-ci/issues/6126
- go env # for debugging
install:
- go get github.com/soniah/gosnmp
- sudo ./snmp_users.sh
- sudo /etc/init.d/snmpd restart
script:
- go test -v -tags helper
- go test -v -tags marshal
- go test -v -tags misc
- go test -v -tags api
- go test -v -tags end2end
- go test -v -tags trap