.travis.yml 1.1 KB

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