language: c
sudo: false
os:
  - linux
  - osx
addons:
  apt:
    packages:
      - nasm
      - diffutils
compiler:
  - clang
  - gcc
matrix:
    exclude:
        - os: osx
          compiler: gcc
cache:
  directories:
    - ffmpeg-samples
before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update --all; fi
install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install nasm; fi
script:
  - mkdir -p ffmpeg-samples
  - ./configure --samples=ffmpeg-samples --cc=$CC
  - make -j 8
  - make fate-rsync
  - make check -j 8