mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
language: rust
|
|
rust:
|
|
- 1.20.0
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
cache: cargo
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-arm-linux-gnueabihf
|
|
- libc6-dev-armhf-cross
|
|
- libpulse-dev
|
|
- portaudio19-dev
|
|
|
|
before_script:
|
|
- mkdir -p ~/.cargo
|
|
- echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
|
|
- echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
|
|
- rustup target add armv7-unknown-linux-gnueabihf
|
|
- if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
|
|
rustup component add rustfmt-preview;
|
|
cargo fmt --all -- --write-mode=diff;
|
|
fi
|
|
|
|
script:
|
|
- cargo build --locked --no-default-features
|
|
- cargo build --locked --no-default-features --features "with-tremor"
|
|
- cargo build --locked --no-default-features --features "with-vorbis"
|
|
- cargo build --locked --no-default-features --features "portaudio-backend"
|
|
- cargo build --locked --no-default-features --features "pulseaudio-backend"
|
|
- cargo build --locked --no-default-features --features "alsa-backend"
|
|
- cargo build --locked --no-default-features --target armv7-unknown-linux-gnueabihf
|
|
|
|
notifications:
|
|
email: false
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/780b178b15811059752e
|
|
on_success: change # options: [always|never|change] default: always
|
|
on_failure: always # options: [always|never|change] default: always
|
|
on_start: never # options: [always|never|change] default: always
|