Commit f58af7d2 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by LNJ

Travis-CI: Use CCache (#188)

This will use ccache on the travis-ci and cache the ccache files in the travis-ci caches, so the travis-ci
builds will speed up a bit, if the same file has been compiled already.
parent 205e8090
language: cpp
compiler: gcc
cache: ccache
sudo: required
dist: trusty
install:
......
......@@ -16,7 +16,7 @@ cd ../build
export QT_SELECT=qt5
# Build kaidan
cmake .. -GNinja -DI18N=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr
cmake .. -GNinja -DI18N=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build .
DESTDIR=../AppDir cmake --build . --target install
cd ..
......
......@@ -9,10 +9,10 @@ echo "*****************************************"
mkdir ../build; cd ../build/
if [ $BUILD_SYSTEM == "cmake" ]; then
cmake .. -GNinja -DI18N=1
cmake .. -GNinja -DI18N=1 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build .
elif [ $BUILD_SYSTEM == "qmake" ]; then
lrelease ../Kaidan.pro
qmake ..
qmake "QMAKE_CXX=ccache g++" ..
make -j$(nproc)
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment