.travis.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 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