forked from gosnmp/gosnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 loc) · 850 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
39
40
41
42
43
44
45
version: "= 0"
language: go
go:
- 1.8
- 1.9
- "1.10"
# $TRAVIS_GOARCH hack - see https://github.com/travis-ci/travis-ci/issues/6126
env:
global:
- GOSNMP_TARGET=127.0.0.1
- GOSNMP_PORT=161
- GOSNMP_TARGET_IPV4=127.0.0.1
- GOSNMP_PORT_IPV4=161
- GOSNMP_TARGET_IPV6='::1'
- GOSNMP_PORT_IPV6=161
matrix:
- TRAVIS_GOARCH=amd64
- TRAVIS_GOARCH=386
before_install:
- sudo apt-get update -qq
- sudo apt-get install snmpd
- export GOARCH=$TRAVIS_GOARCH
install:
- go get github.com/soniah/gosnmp
- sudo ./snmp_users.sh
- sudo /etc/init.d/snmpd restart
# confirm GOARCH 386 is actually being set
before_script:
- echo "~~ go env ~~"
- go env
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