.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - gcc-arm-linux-gnueabihf
  14. - libc6-dev-armhf-cross
  15. - libpulse-dev
  16. - portaudio19-dev
  17. before_script:
  18. - mkdir -p ~/.cargo
  19. - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
  20. - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
  21. - sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
  22. script:
  23. - cargo build --no-default-features --features "with-syntex"
  24. - cargo build --no-default-features --features "with-syntex with-tremor"
  25. - cargo build --no-default-features --features "with-syntex portaudio-backend"
  26. - cargo build --no-default-features --features "with-syntex pulseaudio-backend"
  27. - cargo build --no-default-features --features "with-syntex alsa-backend"
  28. - cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf
  29. # Building without syntex only works on nightly
  30. - if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
  31. cargo build --no-default-features --features "nightly";
  32. fi
  33. notifications:
  34. email: false