language: go
go:
 - 1.5.x
 - 1.6.x
 - 1.7.x
 - 1.8.x
 - 1.9.x
 - 1.10.x
 - 1.11.x
 - 1.12.x
 - master

addons:
  apt:
    packages:
      libpcap-dev

install: ./.travis.install.sh

script: ./.travis.script.sh

matrix:
  fast_finish: true
  allow_failures:
    - go: master

jobs:
  include:
    - os: osx
      go: 1.x
    - os: windows
      go: 1.x
      # winpcap does not work on travis ci - so install nmap to get libpcap
      before_install: choco install nmap
    - stage: style
      name: "fmt/vet/lint"
      go: 1.x
      script:
        - ./.travis.gofmt.sh
        - ./.travis.govet.sh
        - ./.travis.golint.sh

stages:
  - style
  - test

language: go
go:
 - 1.11.x
 - 1.12.x
 - master

addons:
  apt:
    packages:
      libpcap-dev

# use modules except for older versions (see below)
install: true

env:
  - GO111MODULE=on

script: ./.travis.script.sh

matrix:
  fast_finish: true
  allow_failures:
    - go: master

jobs:
  include:
    - go: 1.5.x
      install: ./.travis.install.sh
    - go: 1.6.x
      install: ./.travis.install.sh
    - go: 1.7.x
      install: ./.travis.install.sh
    - go: 1.8.x
      install: ./.travis.install.sh
    - go: 1.9.x
      install: ./.travis.install.sh
    - go: 1.10.x
      install: ./.travis.install.sh
    - os: osx
      go: 1.x
    - os: windows
      go: 1.x
      # winpcap does not work on travis ci - so install nmap to get libpcap
      before_install: choco install nmap
    - stage: style
      name: "fmt/vet/lint"
      go: 1.x
      script:
        - ./.travis.gofmt.sh
        - ./.travis.govet.sh
        - ./.travis.golint.sh

stages:
  - style
  - test

Use modules in ci testing starting with go 1.11
Use modules in ci testing starting with go 1.11
