.travis.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. language: rust
  2. rust:
  3. - 1.33.0
  4. - stable
  5. - beta
  6. - nightly
  7. cache: cargo
  8. # Reduce cache bloat
  9. before_cache:
  10. - rm -rfv "$TRAVIS_HOME/.cargo/registry/src"
  11. - rm -rfv target/debug/incremental/{librespot,build_script_build}-*
  12. - rm -rfv target/debug/.fingerprint/librespot-*
  13. - rm -rfv target/debug/build/librespot-*
  14. - rm -rfv target/debug/deps/liblibrespot-*
  15. - rm -rfv target/debug/deps/librespot-*
  16. - rm -rfv target/debug/{librespot,liblibrespot}.d
  17. - cargo clean -p librespot librespot-core librespot-connect librespot-audio librespot-metadata librespot-playback
  18. addons:
  19. apt:
  20. packages:
  21. - gcc-arm-linux-gnueabihf
  22. - libc6-dev-armhf-cross
  23. - libpulse-dev
  24. - portaudio19-dev
  25. - libasound2-dev
  26. - libsdl2-dev
  27. before_script:
  28. - rustup component add rustfmt
  29. - mkdir -p ~/.cargo
  30. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  31. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  32. - rustup target add armv7-unknown-linux-gnueabihf
  33. script:
  34. - cargo fmt --all -- --check
  35. - cargo build --locked --no-default-features
  36. - cargo build --locked --examples
  37. - cargo build --locked --no-default-features --features "with-tremor"
  38. - cargo build --locked --no-default-features --features "with-vorbis"
  39. - cargo build --locked --no-default-features --features "alsa-backend"
  40. - cargo build --locked --no-default-features --features "portaudio-backend"
  41. - cargo build --locked --no-default-features --features "pulseaudio-backend"
  42. - cargo build --locked --no-default-features --features "jackaudio-backend"
  43. - cargo build --locked --no-default-features --features "rodio-backend"
  44. - cargo build --locked --no-default-features --features "sdl-backend"
  45. - cargo build --locked --no-default-features --target armv7-unknown-linux-gnueabihf
  46. notifications:
  47. email: false
  48. webhooks:
  49. urls:
  50. - https://webhooks.gitter.im/e/780b178b15811059752e
  51. on_success: change # options: [always|never|change] default: always
  52. on_failure: always # options: [always|never|change] default: always
  53. on_start: never # options: [always|never|change] default: always