Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 1 | language: go |
| 2 | go: |
| 3 | - 1.11.x |
| 4 | - 1.12.x |
| 5 | - 1.13.x |
| 6 | - master |
| 7 | |
| 8 | addons: |
| 9 | apt: |
| 10 | packages: |
| 11 | libpcap-dev |
| 12 | |
| 13 | # use modules except for older versions (see below) |
| 14 | install: true |
| 15 | |
| 16 | env: |
| 17 | - GO111MODULE=on |
| 18 | |
| 19 | script: ./.travis.script.sh |
| 20 | |
| 21 | matrix: |
| 22 | fast_finish: true |
| 23 | allow_failures: |
| 24 | - go: master |
| 25 | |
| 26 | jobs: |
| 27 | include: |
| 28 | - go: 1.5.x |
| 29 | install: ./.travis.install.sh |
| 30 | - go: 1.6.x |
| 31 | install: ./.travis.install.sh |
| 32 | - go: 1.7.x |
| 33 | install: ./.travis.install.sh |
| 34 | - go: 1.8.x |
| 35 | install: ./.travis.install.sh |
| 36 | - go: 1.9.x |
| 37 | install: ./.travis.install.sh |
| 38 | - go: 1.10.x |
| 39 | install: ./.travis.install.sh |
| 40 | - os: osx |
| 41 | go: 1.x |
| 42 | # windows doesn't work on travis (package installation just hangs and then errors out) |
| 43 | # - os: windows |
| 44 | # go: 1.x |
| 45 | # # We don't need nmap - but that's the only way to get npcap: |
| 46 | # before_install: choco install npcap --version 0.86 -y |
| 47 | - stage: style |
| 48 | name: "fmt/vet/lint" |
| 49 | go: 1.x |
| 50 | script: |
| 51 | - ./.travis.gofmt.sh |
| 52 | - ./.travis.govet.sh |
| 53 | - ./.travis.golint.sh |
| 54 | |
| 55 | stages: |
| 56 | - style |
| 57 | - test |