build snoregrowl on travis

This commit is contained in:
Patrick von Reth 2015-07-28 20:19:33 +02:00
parent 4d121989be
commit 5c6ad62d83
1 changed files with 6 additions and 1 deletions

View File

@ -11,12 +11,17 @@ before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:kubuntu-ppa/backports ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -q qt52base qt52tools qt52quick1 qt52quickcontrols ninja-build cmake; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source /opt/qt52/bin/qt52-env.sh ;fi
- mkdir -p ~/git && cd ~/git
- git clone -q git://anongit.kde.org/extra-cmake-modules.git
- git clone -q git@github.com:Snorenotify/SnoreGrowl.git
- mkdir -p ~/build && cd ~/build
- mkdir -p extra-cmake-modules && cd extra-cmake-modules
- cmake -G"Ninja" ~/git/extra-cmake-modules -DCMAKE_INSTALL_PREFIX=~/installs/
- ninja install
- mkdir -p snoregrowl && cd snoregrowl
- cmake -G"Ninja" ~/git/SnoreGrowl -DCMAKE_INSTALL_PREFIX=~/installs/
- ninja install
compiler:
- clang
@ -27,7 +32,7 @@ script:
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/ -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 ;fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source /opt/qt52/bin/qt52-env.sh && cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/ ;fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/ ;fi
- ninja
notifications: