blob: 8ebb01d77af70e3c7a9477cf71bb0dfc5fb04d41 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001language: go
2go:
3 - 1.11.x
4 - 1.12.x
5 - master
6
7addons:
8 apt:
9 packages:
10 libpcap-dev
11
12# use modules except for older versions (see below)
13install: true
14
15env:
16 - GO111MODULE=on
17
18script: ./.travis.script.sh
19
20matrix:
21 fast_finish: true
22 allow_failures:
23 - go: master
24
25jobs:
26 include:
27 - go: 1.5.x
28 install: ./.travis.install.sh
29 - go: 1.6.x
30 install: ./.travis.install.sh
31 - go: 1.7.x
32 install: ./.travis.install.sh
33 - go: 1.8.x
34 install: ./.travis.install.sh
35 - go: 1.9.x
36 install: ./.travis.install.sh
37 - go: 1.10.x
38 install: ./.travis.install.sh
39 - os: osx
40 go: 1.x
41 - os: windows
42 go: 1.x
43 # winpcap does not work on travis ci - so install nmap to get libpcap
44 before_install: choco install nmap
45 - stage: style
46 name: "fmt/vet/lint"
47 go: 1.x
48 script:
49 - ./.travis.gofmt.sh
50 - ./.travis.govet.sh
51 - ./.travis.golint.sh
52
53stages:
54 - style
55 - test