librespot/.travis.yml

60 lines
2.3 KiB
YAML
Raw Normal View History

2015-12-30 19:11:29 +00:00
language: rust
rust:
2019-11-07 23:17:56 +00:00
- 1.33.0
- stable
- beta
2015-12-30 19:11:29 +00:00
- nightly
2016-05-04 08:37:09 +00:00
cache: cargo
# Reduce cache bloat
before_cache:
- rm -rfv "$TRAVIS_HOME/.cargo/registry/src"
- rm -rfv target/debug/incremental/{librespot,build_script_build}-*
- rm -rfv target/debug/.fingerprint/librespot-*
- rm -rfv target/debug/build/librespot-*
- rm -rfv target/debug/deps/liblibrespot-*
- rm -rfv target/debug/deps/librespot-*
- rm -rfv target/debug/{librespot,liblibrespot}.d
2020-01-23 23:27:57 +00:00
- rm -rfv target/debug/incremental/{build_script_build,librespot,librespot_core,librespot_connect,librespot_audio,librespot_metadata,librespot_playback,librespot_player,librespot_protocol}-*
2020-01-23 23:59:28 +00:00
- cargo clean -p librespot -p librespot-core -p librespot-connect -p librespot-audio -p librespot-metadata -p librespot-playback
2015-12-30 19:11:29 +00:00
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-dev-armhf-cross
2016-12-31 13:30:01 +00:00
- libpulse-dev
- portaudio19-dev
2019-07-18 11:27:14 +00:00
- libasound2-dev
- libsdl2-dev
before_script:
- rustup component add rustfmt
- mkdir -p ~/.cargo
- echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
- echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
2017-03-26 11:24:48 +00:00
- rustup target add armv7-unknown-linux-gnueabihf
2016-04-23 15:01:02 +00:00
2016-01-02 00:05:26 +00:00
script:
- cargo fmt --all -- --check
- cargo build --locked --no-default-features
2019-11-08 08:58:43 +00:00
- cargo build --locked --examples
- cargo build --locked --no-default-features --features "with-tremor"
- cargo build --locked --no-default-features --features "with-vorbis"
2019-07-18 11:27:14 +00:00
- cargo build --locked --no-default-features --features "alsa-backend"
- cargo build --locked --no-default-features --features "portaudio-backend"
- cargo build --locked --no-default-features --features "pulseaudio-backend"
2019-07-18 11:27:14 +00:00
- cargo build --locked --no-default-features --features "jackaudio-backend"
- cargo build --locked --no-default-features --features "rodio-backend"
- cargo build --locked --no-default-features --features "sdl-backend"
- cargo build --locked --no-default-features --target armv7-unknown-linux-gnueabihf
2016-05-06 19:23:26 +00:00
notifications:
2018-01-28 17:53:24 +00:00
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