forked from plietar/librespot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (34 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: rust
rust:
- stable
- beta
- nightly
cache: cargo
matrix:
allow_failures:
- rust: nightly
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
- sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
script:
- cargo build --no-default-features --features "with-syntex"
- cargo build --no-default-features --features "with-syntex with-tremor"
- cargo build --no-default-features --features "with-syntex portaudio-backend"
- cargo build --no-default-features --features "with-syntex pulseaudio-backend"
- cargo build --no-default-features --features "with-syntex alsa-backend"
- cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf
# Building without syntex only works on nightly
- if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then
cargo build --no-default-features --features "nightly";
fi
notifications:
email: false