Added ccache to travis #62

This commit is contained in:
Daniel Brunner
2018-03-24 16:18:08 +01:00
parent 8dcb98d77c
commit d762049d07
5 changed files with 9 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ compiler:
cache:
directories:
- ~/.ccache
- qt5
install:
@@ -18,11 +19,12 @@ install:
- if [ ! -f config.summary ] ; then ./configure -prefix `pwd`/build -opensource -confirm-license -nomake examples -nomake tests ; fi
- if [ ! -d build ] ; then make -j2 > /dev/null && make install ; fi
- popd
- ccache -s
script:
- mkdir -p build
- pushd build
- ../qt5/build/bin/qmake .. -config release
- ../qt5/build/bin/qmake CONFIG+=ccache .. -config release
- make -j2
- make install
- popd

3
ccache.pri Normal file
View File

@@ -0,0 +1,3 @@
ccache {
QMAKE_CXX = ccache $$QMAKE_CXX
}

View File

@@ -32,7 +32,7 @@ RESOURCES += zeiterfassung_resources.qrc
TRANSLATIONS += translations/zeiterfassung_en.ts \
translations/zeiterfassung_de.ts
include($${PROJECT_ROOT}ccache.pri)
include($${PROJECT_ROOT}/ccache.pri)
include($${PROJECT_ROOT}/lrelease.pri)

View File

@@ -62,6 +62,6 @@ RESOURCES +=
TRANSLATIONS += translations/zeiterfassungcorelib_en.ts \
translations/zeiterfassungcorelib_de.ts
include($${PROJECT_ROOT}ccache.pri)
include($${PROJECT_ROOT}/ccache.pri)
include($${PROJECT_ROOT}/lrelease.pri)

View File

@@ -48,7 +48,7 @@ RESOURCES += zeiterfassungguilib_resources.qrc
TRANSLATIONS += translations/zeiterfassungguilib_en.ts \
translations/zeiterfassungguilib_de.ts
include($${PROJECT_ROOT}ccache.pri)
include($${PROJECT_ROOT}/ccache.pri)
include($${PROJECT_ROOT}/lrelease.pri)