forked from x-way/iptables-tracer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (42 loc) · 1.06 KB
/
.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
46
47
48
49
50
51
language: go
os: linux
go:
- "1.10.x"
- "1.11.x"
matrix:
include:
- go: master
if: branch = master AND type = cron
env:
global:
- LATEST_TCPDUMP=true
- PATH=/tmp/sbin:$PATH
addons:
apt:
packages:
- libusb-1.0-0-dev
- libdbus-glib-1-dev
- libbluetooth-dev
- libnl-genl-3-dev
- libibverbs-dev
- libssl-dev
- libssl0.9.8
- libssl1.0.0
- libdnet-dev
- libsmi2-dev
- libcap-ng-dev
- libpcap-dev
before_script:
- if [ "$LATEST_TCPDUMP" = true ]; then (cd .. && git clone --depth 3 --branch=master --quiet git://github.com/the-tcpdump-group/tcpdump.git && cd tcpdump && ./configure --prefix=/tmp && make && make install); fi
install:
- go get golang.org/x/lint/golint
- go get github.com/mattn/goveralls
- go get -t -d ./...
script:
- go vet ./...
- golint -set_exit_status ./...
- go test -v ./...
- $GOPATH/bin/goveralls -service=travis-ci
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)