Free Travis instances don't support caching.

This commit is contained in:
Patrick von Reth 2015-09-04 16:51:40 +02:00
parent 21784b68aa
commit 853580852a

View File

@ -8,11 +8,7 @@ before_install: |-
if [ "$TRAVIS_OS_NAME" == "osx" ] if [ "$TRAVIS_OS_NAME" == "osx" ]
then then
brew update brew update
brew install ninja brew install ninja qt5
if [ ! -d /usr/local/opt/qt5 ]
then
brew install qt5
fi
fi fi
if [ "$TRAVIS_OS_NAME" == "linux" ] if [ "$TRAVIS_OS_NAME" == "linux" ]
then then
@ -23,27 +19,23 @@ before_install: |-
sudo apt-get install -q ninja-build cmake sudo apt-get install -q ninja-build cmake
source /opt/qt53/bin/qt53-env.sh source /opt/qt53/bin/qt53-env.sh
fi fi
if [ ! -d ~/snore_work ] mkdir -p ~/git
then cd ~/git
mkdir -p ~/snore_work git clone -q git://anongit.kde.org/extra-cmake-modules.git
mkdir -p ~/snore_work/git git clone -q https://github.com/Snorenotify/SnoreGrowl.git
cd ~/snore_work/git mkdir -p ~/build
git clone -q git://anongit.kde.org/extra-cmake-modules.git cd ~/build
git clone -q https://github.com/Snorenotify/SnoreGrowl.git mkdir -p ~/build/extra-cmake-modules
mkdir -p ~/snore_work/build cd ~/build/extra-cmake-modules
cd ~/snore_work/build cmake -G"Ninja" ~/git/extra-cmake-modules -DCMAKE_INSTALL_PREFIX=~/installs/
mkdir -p ~/snore_work/build/extra-cmake-modules ninja install
cd ~/snore_work/build/extra-cmake-modules mkdir -p ~/build/snoregrowl && cd ~/build/snoregrowl
cmake -G"Ninja" ~/snore_work/git/extra-cmake-modules -DCMAKE_INSTALL_PREFIX=~/snore_work/installs/ cmake -G"Ninja" ~/git/SnoreGrowl -DCMAKE_INSTALL_PREFIX=~/installs/
ninja install ninja install
mkdir -p ~/snore_work/build/snoregrowl && cd ~/snore_work/build/snoregrowl
cmake -G"Ninja" ~/snore_work/git/SnoreGrowl -DCMAKE_INSTALL_PREFIX=~/snore_work/installs/
ninja install
fi
compiler: compiler:
- clang - clang
- gcc #- gcc
script: |- script: |-
cd $TRAVIS_BUILD_DIR cd $TRAVIS_BUILD_DIR
@ -51,19 +43,14 @@ script: |-
cd build cd build
if [ "$TRAVIS_OS_NAME" == "osx" ] if [ "$TRAVIS_OS_NAME" == "osx" ]
then then
cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/snore_work/installs/ -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/ -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5
fi fi
if [ "$TRAVIS_OS_NAME" == "linux" ] if [ "$TRAVIS_OS_NAME" == "linux" ]
then then
cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/snore_work/installs/ cmake -G"Ninja" .. -DCMAKE_INSTALL_PREFIX=~/installs/
fi fi
ninja install ninja install
cache:
directories:
- $HOME/snore_work
- /usr/local/opt/qt5
notifications: notifications:
irc: "chat.freenode.net#snorenotify" irc: "chat.freenode.net#snorenotify"