.travis.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. - rm -rfv target/debug/incremental/{build_script_build,librespot,librespot_core,librespot_connect,librespot_audio,librespot_metadata,librespot_playback,librespot_player,librespot_protocol}-*
  18. - cargo clean -p librespot -p librespot-core -p librespot-connect -p librespot-audio -p librespot-metadata -p librespot-playback
  19. addons:
  20. apt:
  21. packages:
  22. - gcc-arm-linux-gnueabihf
  23. - libc6-dev-armhf-cross
  24. - libpulse-dev
  25. - portaudio19-dev
  26. - libasound2-dev
  27. - libsdl2-dev
  28. before_script:
  29. - rustup component add rustfmt
  30. - mkdir -p ~/.cargo
  31. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  32. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  33. - rustup target add armv7-unknown-linux-gnueabihf
  34. script:
  35. - cargo fmt --all -- --check
  36. - cargo build --locked --no-default-features
  37. - cargo build --locked --examples
  38. - cargo build --locked --no-default-features --features "with-tremor"
  39. - cargo build --locked --no-default-features --features "with-vorbis"
  40. - cargo build --locked --no-default-features --features "alsa-backend"
  41. - cargo build --locked --no-default-features --features "portaudio-backend"
  42. - cargo build --locked --no-default-features --features "pulseaudio-backend"
  43. - cargo build --locked --no-default-features --features "jackaudio-backend"
  44. - cargo build --locked --no-default-features --features "rodio-backend"
  45. - cargo build --locked --no-default-features --features "sdl-backend"
  46. - cargo build --locked --no-default-features --target armv7-unknown-linux-gnueabihf
  47. notifications:
  48. email: false
  49. webhooks:
  50. urls:
  51. - https://webhooks.gitter.im/e/780b178b15811059752e
  52. on_success: change # options: [always|never|change] default: always
  53. on_failure: always # options: [always|never|change] default: always
  54. on_start: never # options: [always|never|change] default: always