forked from cloudflare/ebpf_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 1.02 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
# We need this for full bcc support
dist: xenial
language: go
go:
- 1.x
- master
before_install:
# We're not interested in gopath provided by travis, default ~/go is good
- export GOPATH=""
# Install bcc
- sudo apt-get update && sudo apt-get install -y lsb-release
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648A4A16A23015EEF4A66B8E4052245BD4284CDD
- echo "deb https://repo.iovisor.org/apt/$(lsb_release --short --codename) $(lsb_release --short --codename) main" | sudo tee /etc/apt/sources.list.d/iovisor.list
- sudo apt-get update && sudo apt-get install -y libbcc linux-headers-$(uname -r)
- sudo dpkg -L libbcc
# Install linter tools, cd to avoid confusion with go modules
- cd && go get -u -v github.com/alecthomas/gometalinter
- ~/go/bin/gometalinter --install
- cd -
install:
- echo Automatic install suppressed
script:
- export GOPATH="" GOPROXY="off" GOFLAGS="-mod=vendor"
- GOPROXY="" go mod verify
- go test -v ./...
- ~/go/bin/gometalinter --deadline 120s --vendor ./...