Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: travis.yml to automate builds on travis.ci
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
compiler: | ||
- gcc | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
cache: apt | ||
|
||
before_install: | ||
- ifmac () { if [[ $TRAVIS_OS_NAME == osx ]]; then eval $@; fi; } | ||
- iflin () { if [[ $TRAVIS_OS_NAME == linux ]]; then eval $@; fi; } | ||
- ifmac brew update | ||
- ifmac brew install cmake qt5 | ||
- iflin sudo apt-add-repository -y ppa:ubuntu-sdk-team/ppa | ||
- iflin sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
- iflin sudo apt-get update | ||
- iflin sudo apt-get install gcc-4.7 g++-4.7 aptitude build-essential libjack-dev libsndfile1-dev libasound2-dev libavahi-client-dev libicu-dev libreadline6-dev libfftw3-dev libxt-dev pkg-config cmake subversion libstdc++5 qtbase5-dev qt5-qmake qttools5-dev qttools5-dev-tools qtdeclarative5-dev libqt5webkit5-dev libudev-dev | ||
- iflin sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 | ||
- iflin sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 | ||
- iflin sudo update-alternatives --auto gcc | ||
|
||
before_script: | ||
- mkdir BUILD | ||
- cd BUILD | ||
- ifmac cmake -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.3.0 -DSC_QT=1 .. --debug-output | ||
- iflin cmake -DSC_EL=no -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/qt5/ -DCMAKE_INSTALL_PREFIX:PATH=$PWD/Install -DCMAKE_BUILD_TYPE=Release .. --debug-output | ||
- iflin aptitude why libqt4-dev | ||
|
||
script: make | ||
|
||
notifications: | ||
email: | ||
- scott@artificia.org | ||
on_success: change | ||
on_failure: always |