sudo: false

language: rust

rust:
  - stable
  - beta
  - nightly

matrix:
  allow_failures:
    - rust: nightly

addons:
  apt:
    packages:
      - gcc-multilib
      - autoconf
      - automake
      - libtool
      - yasm
      - zlib1g-dev:i386

env:
  global:
    - RUST_BACKTRACE=1
    - PKG_CONFIG_ALLOW_CROSS=1

cache:
  cargo: true
  directories:
    - $HOME/ffmpeg

before_install:
  - bash .travis/install-ffmpeg.sh
  - ls -R "$HOME/ffmpeg"
  - export PKG_CONFIG_PATH="$HOME/ffmpeg/lib/pkgconfig"
  - export LD_LIBRARY_PATH="$HOME/ffmpeg/lib"

install:
  - rustup target add i686-unknown-linux-gnu

script:
  - cargo build --verbose
  - cargo test --verbose
  - rustdoc --no-defaults --passes "collapse-docs" --passes "unindent-comments" --crate-name hl_capture src/lib.rs --target i686-unknown-linux-gnu -o docs -L target/i686-unknown-linux-gnu/debug/deps

sudo: false

language: rust

rust:
  - stable
  - beta
  - nightly

matrix:
  allow_failures:
    - rust: nightly

addons:
  apt:
    packages:
      - gcc-multilib
      - autoconf
      - automake
      - libtool
      - yasm
      - zlib1g-dev:i386

env:
  global:
    - RUST_BACKTRACE=1
    - PKG_CONFIG_ALLOW_CROSS=1

cache:
  cargo: true
  directories:
    - $HOME/ffmpeg

before_install:
  - bash .travis/install-ffmpeg.sh
  - ls -R "$HOME/ffmpeg"
  - export PKG_CONFIG_PATH="$HOME/ffmpeg/lib/pkgconfig"
  - export LD_LIBRARY_PATH="$HOME/ffmpeg/lib"

install:
  - rustup target add i686-unknown-linux-gnu

script:
  - cargo build --verbose
  - rustdoc --no-defaults --passes "collapse-docs" --passes "unindent-comments" --crate-name hl_capture src/lib.rs --target i686-unknown-linux-gnu -o docs -L target/i686-unknown-linux-gnu/debug/deps
  - cargo test --verbose

Move rustdoc before cargo test
Move rustdoc before cargo test
