.travis.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. language: rust
  2. rust:
  3. - 1.20.0
  4. - stable
  5. - beta
  6. - nightly
  7. cache: cargo
  8. addons:
  9. apt:
  10. packages:
  11. - gcc-arm-linux-gnueabihf
  12. - libc6-dev-armhf-cross
  13. - libpulse-dev
  14. - portaudio19-dev
  15. before_script:
  16. - mkdir -p ~/.cargo
  17. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  18. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  19. - rustup target add armv7-unknown-linux-gnueabihf
  20. - if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
  21. rustup component add rustfmt-preview;
  22. cargo fmt --all -- --write-mode=diff;
  23. fi
  24. script:
  25. - cargo build --locked --no-default-features
  26. - cargo build --locked --no-default-features --features "with-tremor"
  27. - cargo build --locked --no-default-features --features "with-vorbis"
  28. - cargo build --locked --no-default-features --features "portaudio-backend"
  29. - cargo build --locked --no-default-features --features "pulseaudio-backend"
  30. - cargo build --locked --no-default-features --features "alsa-backend"
  31. - cargo build --locked --no-default-features --target armv7-unknown-linux-gnueabihf
  32. notifications:
  33. email: false
  34. webhooks:
  35. urls:
  36. - https://webhooks.gitter.im/e/780b178b15811059752e
  37. on_success: change # options: [always|never|change] default: always
  38. on_failure: always # options: [always|never|change] default: always
  39. on_start: never # options: [always|never|change] default: always