Skip to content

Commit

Permalink
Update travis.yml to test on both OSX & Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Dec 15, 2015
1 parent acbe8b1 commit ee2a4ca
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .travis.yml
@@ -1,9 +1,34 @@
sudo: false
os:
- osx
- linux
language:
- cpp
- cpp
compiler:
- gcc
install:
- sudo apt-get install libsamplerate-dev libsndfile-dev libasound2-dev
- gcc
- clang
addons:
apt:
packages:
- libsamplerate-dev
- libsndfile-dev
- libasound2-dev

before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated pkg-config || brew upgrade pkg-config; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install aften; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libsamplerate; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libsndfile; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install opus; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install readline; fi

script:
- ./waf configure --alsa
- ./waf build
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./waf configure --alsa; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./waf configure --opus=no --readline=no; fi
- ./waf build

matrix:
exclude:
- os: osx
compiler: gcc

0 comments on commit ee2a4ca

Please sign in to comment.