.travis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: rust
  2. rust:
  3. - stable
  4. - beta
  5. - nightly
  6. cache: cargo
  7. matrix:
  8. allow_failures:
  9. - rust: nightly
  10. addons:
  11. apt:
  12. packages:
  13. - libprotoc-dev
  14. - portaudio19-dev
  15. - libpulse-dev
  16. - gcc-arm-linux-gnueabihf
  17. - libc6-dev-armhf-cross
  18. before_script:
  19. - mkdir -p ~/.cargo
  20. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  21. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  22. - sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
  23. script:
  24. - cargo build --no-default-features --features "with-syntex"
  25. - cargo build --no-default-features --features "with-syntex with-tremor"
  26. - cargo build --no-default-features --features "with-syntex facebook"
  27. - cargo build --no-default-features --features "with-syntex portaudio-backend"
  28. - cargo build --no-default-features --features "with-syntex pulseaudio-backend"
  29. - cargo build --no-default-features --features "with-syntex alsa-backend"
  30. - cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf
  31. # Building without syntex only works on nightly
  32. - if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
  33. cargo build --no-default-features --features "nightly";
  34. fi
  35. notifications:
  36. email: false