Skip to content

Commit

Permalink
Build: travis.yml to automate builds on travis.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
scztt committed Jun 20, 2014
1 parent 808013d commit 491a0dc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
@@ -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

0 comments on commit 491a0dc

Please sign in to comment.