forked from meh/rust-ffmpeg-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (31 loc) · 1.02 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
sudo: required
language: rust
rust:
- stable
- beta
- nightly
os:
- linux
- osx
matrix:
allow_failures:
- rust: nightly
addons:
apt:
packages:
- build-essential
before_install:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then ./.travis/install_linux.sh; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install yasm; fi
script: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# Current Travis Ubuntu version uses libav which doesn't come with libswresample
cargo build --verbose --no-default-features --features "avcodec avfilter avformat avresample swscale" &&
cargo test --verbose --no-default-features --features "avcodec avfilter avformat avresample swscale"
else
travis_wait cargo build --verbose --features "build"
cargo test --verbose --features "build"
fi
after_failure:
- find /usr -type f 2>/dev/null | grep -E 'lib(avcodec/version|avcodec/avcodec).h$' | xargs -I THEFILE -- sh -c 'echo "=== THEFILE ==="; cat THEFILE'