.travis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: rust
  2. rust:
  3. - stable
  4. - beta
  5. - nightly-2016-07-03 # Last known to be working nightly
  6. - nightly
  7. cache: cargo
  8. matrix:
  9. allow_failures:
  10. - rust: nightly
  11. addons:
  12. apt:
  13. packages:
  14. - libprotoc-dev
  15. - portaudio19-dev
  16. - libpulse-dev
  17. - gcc-arm-linux-gnueabihf
  18. - libc6-dev-armhf-cross
  19. before_script:
  20. - mkdir -p ~/.cargo
  21. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  22. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  23. - sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
  24. script:
  25. - cargo build --no-default-features --features "with-syntex"
  26. - cargo build --no-default-features --features "with-syntex with-tremor"
  27. - cargo build --no-default-features --features "with-syntex facebook"
  28. - cargo build --no-default-features --features "with-syntex portaudio-backend"
  29. - cargo build --no-default-features --features "with-syntex pulseaudio-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