forked from dropbox/goebpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (26 loc) · 951 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
dist: xenial
language: go
sudo: true
go:
- "tip"
- "1.12.x"
- "1.11.x"
- "1.10.x"
- "1.9.x"
before_install:
- sudo apt-get update
- sudo apt-get install -y clang llvm
- export GO111MODULE=on
script:
# ad-hoc for golang versions < 1.11
# testify now uses go 1.13 features like errors.Is(), so switching to last supported version
- rm -rf $GOPATH/src/github.com/stretchr/testify
- git clone -b v1.6.1 https://github.com/stretchr/testify.git $GOPATH/src/github.com/stretchr/testify
# Verify for formatting issues
- if [ -n "$(gofmt -s -l .)" ]; then echo "Please fix source formatting by 'go fmt ./...'"; false; fi
# Run unit tests
- go test -v -coverprofile=coverage.txt -covermode=atomic
- cd goebpf_mock && go test -v -coverprofile=coverage.txt -covermode=atomic
# Travis does not support operations with eBPF, so, just ensure that
# integration test is compilable Run integration test
- cd ../itest && make