Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update travis.yml to test on both OSX & Linux
- Loading branch information
ethe
committed
Dec 15, 2015
1 parent
acbe8b1
commit ee2a4ca
Showing
1 changed file
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |