2015-07-28 00:06:57 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- osx
|
|
|
|
- linux
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install qt5 ninja; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt521; fi
|
|
|
|
- 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
|
2015-07-28 18:19:33 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source /opt/qt52/bin/qt52-env.sh ;fi
|
2015-07-28 00:06:57 +00:00
|
|
|
- mkdir -p ~/git && cd ~/git
|
|
|
|
- git clone -q git://anongit.kde.org/extra-cmake-modules.git
|
2015-07-28 18:28:21 +00:00
|
|
|
- git clone -q https://github.com/Snorenotify/SnoreGrowl.git
|
|
|
|
- mkdir -p ~/build
|
|
|
|
- mkdir -p ~/build/extra-cmake-modules && cd ~/build/extra-cmake-modules
|
2015-07-28 00:06:57 +00:00
|
|
|
- cmake -G"Ninja" ~/git/extra-cmake-modules -DCMAKE_INSTALL_PREFIX=~/installs/
|
|
|
|
- ninja install
|
2015-07-28 18:28:21 +00:00
|
|
|
- mkdir -p ~/build/snoregrowl && cd ~/build/snoregrowl
|
2015-07-28 18:19:33 +00:00
|
|
|
- cmake -G"Ninja" ~/git/SnoreGrowl -DCMAKE_INSTALL_PREFIX=~/installs/
|
|
|
|
- ninja install
|
2015-07-28 00:06:57 +00:00
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
#- gcc
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- 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
|
2015-07-28 18:19:33 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/ ;fi
|
2015-08-23 12:38:20 +00:00
|
|
|
- ninja install
|
2015-07-28 00:06:57 +00:00
|
|
|
|
2015-07-28 00:11:25 +00:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#snorenotify"
|
|
|
|
|
2015-07-28 00:06:57 +00:00
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - kubuntu-backports
|
|
|
|
# packages:
|
|
|
|
# - cmake
|
|
|
|
# - qtbase5-dev
|
|
|
|
# - qtquick1-5-dev
|
|
|
|
# - qttools5-dev
|
|
|
|
# - extra-cmake-modules
|
|
|
|
|