third attempt at travis config

* upgrade minimum required Rust from 1.17 to 1.20; reffers 0.4.2
  apparently uses std::mem::ManuallyDrop, introduced in 1.20

* install ffmpeg from source (requiring sudo access) rather than using
  the ancient one from Ubuntu Trusty to meet the minimum version
  requirements specified in ffmpeg/build.rs.
This commit is contained in:
Scott Lamb 2018-08-07 15:23:32 -05:00
parent a81de3f620
commit 62a1bad8b9
3 changed files with 8 additions and 7 deletions

View File

@ -1,25 +1,26 @@
dist: trusty
sudo: required
language: rust language: rust
rust: rust:
- stable - stable
- nightly - nightly
- 1.17.0 - 1.20.0
addons: addons:
apt: apt:
packages: packages:
- build-essential - build-essential
- libavcodec-dev
- libavformat-dev
- libavutil-dev
- libncurses5-dev - libncurses5-dev
- libncursesw5-dev - libncursesw5-dev
- libsqlite3-dev - libsqlite3-dev
- libssl-dev - libssl-dev
- pkg-config - pkg-config
- yasm
matrix: matrix:
allow_failures: allow_failures:
- rust: nightly - rust: nightly
cache: cargo cache: cargo
script: script:
- (git clone --depth 1 -b "release/3.4" https://github.com/FFmpeg/FFmpeg.git && cd FFmpeg && ./configure --enable-shared && make && sudo make install && sudo ldconfig)
- cargo build --verbose --all - cargo build --verbose --all
- cargo test --verbose --all - cargo test --verbose --all
- 'if [ $TRAVIS_RUST_VERSION = nightly ]; then cargo bench --verbose --all; fi' - 'if [ $TRAVIS_RUST_VERSION = nightly ]; then cargo bench --verbose --all; fi'

View File

@ -49,8 +49,8 @@ all non-Rust dependencies:
libssl-dev \ libssl-dev \
pkgconf pkgconf
Next, you need Rust 1.17+ and Cargo. The easiest way to install them is by following Next, you need Rust 1.20+ and Cargo. The easiest way to install them is by
the instructions at [rustup.rs](https://www.rustup.rs/). following the instructions at [rustup.rs](https://www.rustup.rs/).
Finally, building the UI requires [yarn](https://yarnpkg.com/en/). Finally, building the UI requires [yarn](https://yarnpkg.com/en/).

View File

@ -40,7 +40,7 @@ fi
NODE_MIN_VERSION="8" NODE_MIN_VERSION="8"
YARN_MIN_VERSION="1.0" YARN_MIN_VERSION="1.0"
CARGO_MIN_VERSION="0.2" CARGO_MIN_VERSION="0.2"
RUSTC_MIN_VERSION="1.17" RUSTC_MIN_VERSION="1.20"
FFMPEG_MIN_VERSION="55.1.101" FFMPEG_MIN_VERSION="55.1.101"
FFMPEG_RELEASE_VERSION="3.4" FFMPEG_RELEASE_VERSION="3.4"