.travis.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. language: rust
  2. matrix:
  3. include:
  4. ### Litmus check that we work on stable/beta
  5. # (we don't, not until slice_rotate lands)
  6. # - rust: stable
  7. # env: FEATURES='default' MODE='test'
  8. # - rust: beta
  9. # env: FEATURES='default' MODE='test'
  10. ### Test default configurations
  11. - rust: nightly
  12. env: FEATURES='default' MODE='test'
  13. ### Test select feature permutations, chosen to be as orthogonal as possible
  14. - rust: nightly
  15. env: FEATURES='std ethernet phy-raw_socket proto-ipv6 socket-udp' MODE='test'
  16. - rust: nightly
  17. env: FEATURES='std ethernet phy-tap_interface proto-ipv6 socket-udp' MODE='test'
  18. - rust: nightly
  19. env: FEATURES='std ethernet proto-ipv4 proto-igmp socket-raw' MODE='test'
  20. - rust: nightly
  21. env: FEATURES='std ethernet proto-ipv4 socket-udp socket-tcp' MODE='test'
  22. - rust: nightly
  23. env: FEATURES='std ethernet proto-ipv4 proto-dhcpv4 socket-udp' MODE='test'
  24. - rust: nightly
  25. env: FEATURES='std ethernet proto-ipv6 socket-udp' MODE='test'
  26. - rust: nightly
  27. env: FEATURES='std ethernet proto-ipv6 socket-tcp' MODE='test'
  28. - rust: nightly
  29. env: FEATURES='std ethernet proto-ipv4 socket-icmp socket-tcp' MODE='test'
  30. - rust: nightly
  31. env: FEATURES='std ethernet proto-ipv6 socket-icmp socket-tcp' MODE='test'
  32. ### Test select feature permutations, chosen to be as aggressive as possible
  33. - rust: nightly
  34. env: FEATURES='ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp std'
  35. MODE='test'
  36. - rust: nightly
  37. env: FEATURES='ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp alloc'
  38. MODE='test'
  39. - rust: nightly
  40. env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp alloc'
  41. MODE='test'
  42. - rust: nightly
  43. env: FEATURES='ethernet proto-ipv4 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp'
  44. MODE='build'
  45. - rust: nightly
  46. env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
  47. - rust: nightly
  48. env: FEATURES='default' MODE='clippy'
  49. - rust: nightly
  50. env: FEATURES='default' MODE='check --bench bench'
  51. - os: osx
  52. rust: nightly
  53. env: FEATURES='default' MODE='build'
  54. allow_failures:
  55. # something's screwy with Travis (as usual) and cargo-fuzz dies with a LeakSanitizer error
  56. # even when it's successful. Keep this in .travis.yml in case it starts working some day.
  57. - rust: nightly
  58. env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
  59. # Clippy sometimes fails to compile and this shouldn't gate merges
  60. - rust: nightly
  61. env: FEATURES='default' MODE='clippy'
  62. # See if the bench actually breaks
  63. - rust: nightly
  64. env: FEATURES='default' MODE='check --bench bench'
  65. before_script:
  66. - if [ "$MODE" == "fuzz run" ]; then cargo install cargo-fuzz; fi
  67. - if [ "$MODE" == "clippy" ]; then cargo install clippy; fi
  68. script:
  69. - cargo $MODE --no-default-features --features "$FEATURES" $ARGS