Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 1 | language: go |
| 2 | go: |
| 3 | - 1.11.x |
| 4 | - 1.12.x |
| 5 | - master |
| 6 | |
| 7 | addons: |
| 8 | apt: |
| 9 | packages: |
| 10 | libpcap-dev |
| 11 | |
| 12 | # use modules except for older versions (see below) |
| 13 | install: true |
| 14 | |
| 15 | env: |
| 16 | - GO111MODULE=on |
| 17 | |
| 18 | script: ./.travis.script.sh |
| 19 | |
| 20 | matrix: |
| 21 | fast_finish: true |
| 22 | allow_failures: |
| 23 | - go: master |
| 24 | |
| 25 | jobs: |
| 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 | |
| 53 | stages: |
| 54 | - style |
| 55 | - test |