.travis.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 stdout-backend"
  30. - cargo build --no-default-features --features "with-syntex alsa-backend"
  31. - cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf
  32. # Building without syntex only works on nightly
  33. - if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
  34. cargo build --no-default-features --features "nightly";
  35. fi
  36. notifications:
  37. email: false