snorenotify/.travis.yml

68 lines
2.1 KiB
YAML
Raw Normal View History

2015-07-28 02:06:57 +02:00
language: cpp
os:
2015-09-04 16:27:16 +02:00
- osx
- linux
2015-07-28 02:06:57 +02:00
2015-09-04 16:27:16 +02:00
before_install: |-
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
brew update
brew install ninja qt5
2015-09-04 16:27:16 +02:00
fi
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
sudo add-apt-repository -y ppa:beineri/opt-qt532
sudo add-apt-repository -y ppa:kubuntu-ppa/backports
sudo apt-get -qq update
sudo apt-get install -q qt53base qt53tools qt53quick1 qt53quickcontrols qt53websockets qt53multimedia
sudo apt-get install -q ninja-build cmake
source /opt/qt53/bin/qt53-env.sh
fi
mkdir -p ~/git
cd ~/git
git clone -q git://anongit.kde.org/extra-cmake-modules.git
git clone -q https://github.com/Snorenotify/SnoreGrowl.git
mkdir -p ~/build
cd ~/build
mkdir -p ~/build/extra-cmake-modules
cd ~/build/extra-cmake-modules
cmake -G"Ninja" ~/git/extra-cmake-modules -DCMAKE_INSTALL_PREFIX=~/installs/
ninja install
mkdir -p ~/build/snoregrowl && cd ~/build/snoregrowl
cmake -G"Ninja" ~/git/SnoreGrowl -DCMAKE_INSTALL_PREFIX=~/installs/
ninja install
2015-07-28 02:06:57 +02:00
compiler:
- clang
#- gcc
2015-07-28 02:06:57 +02:00
2015-09-04 16:27:16 +02:00
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
2015-09-04 16:27:16 +02:00
fi
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/
2015-09-04 16:27:16 +02:00
fi
ninja install
2015-07-28 02:06:57 +02:00
2015-09-04 16:27:16 +02:00
2015-07-28 02:11:25 +02:00
notifications:
2015-09-04 16:27:16 +02:00
irc: "chat.freenode.net#snorenotify"
2015-07-28 02:11:25 +02:00
2015-07-28 02:06:57 +02:00
# addons:
# apt:
# sources:
# - kubuntu-backports
# packages:
# - cmake
# - qtbase5-dev
# - qtquick1-5-dev
# - qttools5-dev
# - extra-cmake-modules