2015-12-30 19:11:29 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
2020-07-22 14:26:08 +00:00
|
|
|
- 1.40.0
|
2016-03-07 18:16:43 +00:00
|
|
|
- stable
|
|
|
|
- beta
|
2015-12-30 19:11:29 +00:00
|
|
|
- nightly
|
|
|
|
|
2020-02-27 00:31:35 +00:00
|
|
|
# Need to cache the whole `.cargo` directory to keep .crates.toml for
|
|
|
|
# cargo-update to work
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.cargo
|
|
|
|
|
|
|
|
# But don't cache the cargo registry
|
2019-11-07 12:16:17 +00:00
|
|
|
before_cache:
|
2020-02-27 00:31:35 +00:00
|
|
|
- rm -rf /home/travis/.cargo/registry
|
2020-04-20 07:56:02 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
# Performance tweak
|
|
|
|
fast_finish: true
|
|
|
|
# Ignore failures in nightly, not ideal, but necessary
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
|
|
|
|
# Only run the formatting check for stable
|
|
|
|
include:
|
|
|
|
- name: 'Rust: format check'
|
|
|
|
rust: stable
|
|
|
|
install:
|
|
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
|
|
- cargo fmt --verbose --all -- --check
|
|
|
|
|
2015-12-30 19:11:29 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-08-09 19:46:52 +00:00
|
|
|
- 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
|
2020-05-11 19:55:18 +00:00
|
|
|
- gstreamer1.0-dev
|
|
|
|
- libgstreamer-plugins-base1.0-dev
|
2016-08-09 19:46:52 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- 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:
|
2018-02-13 01:07:28 +00:00
|
|
|
- cargo build --locked --no-default-features
|
2019-11-08 08:58:43 +00:00
|
|
|
- cargo build --locked --examples
|
2018-02-13 01:07:28 +00:00
|
|
|
- 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"
|
2018-02-13 01:07:28 +00:00
|
|
|
- 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"
|
2020-05-10 20:26:01 +00:00
|
|
|
- cargo build --locked --no-default-features --features "gstreamer-backend"
|
2018-02-13 01:07:28 +00:00
|
|
|
- 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
|