.travis.yml 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. - os: windows
  37. go: 1.x
  38. # winpcap does not work on travis ci - so install npcap (package is unlisted -> version)
  39. before_install: choco install npcap --version 0.86
  40. - stage: style
  41. name: "fmt/vet/lint"
  42. go: 1.x
  43. script:
  44. - ./.travis.gofmt.sh
  45. - ./.travis.govet.sh
  46. - ./.travis.golint.sh
  47. stages:
  48. - style
  49. - test