.travis.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 phy-raw_socket proto-ipv6 socket-udp' MODE='test'
  16. - rust: nightly
  17. env: FEATURES='std phy-tap_interface proto-ipv6 socket-udp' MODE='test'
  18. - rust: nightly
  19. env: FEATURES='std proto-ipv4 socket-raw' MODE='test'
  20. - rust: nightly
  21. env: FEATURES='std proto-ipv6 socket-udp' MODE='test'
  22. - rust: nightly
  23. env: FEATURES='std proto-ipv6 socket-tcp' MODE='test'
  24. - rust: nightly
  25. env: FEATURES='std proto-ipv4 socket-icmp socket-tcp' MODE='test'
  26. - rust: nightly
  27. env: FEATURES='std proto-ipv6 socket-icmp socket-tcp' MODE='test'
  28. ### Test select feature permutations, chosen to be as aggressive as possible
  29. - rust: nightly
  30. env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp std'
  31. MODE='test'
  32. - rust: nightly
  33. env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp alloc'
  34. MODE='test'
  35. - rust: nightly
  36. env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp'
  37. MODE='build'
  38. - rust: nightly
  39. env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
  40. allow_failures:
  41. # something's screwy with Travis (as usual) and cargo-fuzz dies with a LeakSanitizer error
  42. # even when it's successful. Keep this in .travis.yml in case it starts working some day.
  43. - rust: nightly
  44. env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
  45. before_script:
  46. - if [ "$MODE" == "fuzz run" ]; then cargo install cargo-fuzz; fi
  47. script:
  48. - cargo $MODE --no-default-features --features "$FEATURES" $ARGS
  49. notifications:
  50. irc:
  51. channels:
  52. - "chat.freenode.net#m-labs"
  53. use_notice: true
  54. skip_join: true