snorenotify/.travis.yml

75 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2015-07-28 00:06:57 +00:00
language: cpp
os:
2015-09-04 14:27:16 +00:00
- osx
- linux
2015-07-28 00:06:57 +00:00
2015-09-04 14:27:16 +00:00
before_install: |-
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
brew update
brew install ninja qt5
2015-09-04 14:27:16 +00:00
fi
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
2015-09-07 12:23:56 +00:00
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo add-apt-repository -y ppa:beineri/opt-qt532
2015-09-04 14:27:16 +00:00
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
2015-09-04 14:27:16 +00:00
sudo apt-get install -q ninja-build cmake
source /opt/qt53/bin/qt53-env.sh
2015-09-07 12:14:08 +00:00
if [ "$CXX" = "g++" ]
then
2015-09-07 13:05:42 +00:00
sudo apt-get install -q gcc-4.8 g++-4.8
export CXX="g++-4.8"
export CC="gcc-4.8"
2015-09-07 12:14:08 +00:00
fi
2015-09-04 14:27:16 +00:00
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 00:06:57 +00:00
compiler:
- clang
2015-12-03 14:22:57 +00:00
# - gcc
2015-07-28 00:06:57 +00:00
2015-09-04 14:27:16 +00: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 14:27:16 +00:00
fi
if [ "$TRAVIS_OS_NAME" == "linux" ]
then
cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/
2015-09-04 14:27:16 +00:00
fi
ninja install
2015-07-28 00:06:57 +00:00
2015-09-04 14:27:16 +00:00
2015-07-28 00:11:25 +00:00
notifications:
2015-09-04 14:27:16 +00:00
irc: "chat.freenode.net#snorenotify"
2015-07-28 00:11:25 +00:00
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