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: cache:
directories: directories:
- ~/.ccache
- qt5 - qt5
install: install:
@@ -18,11 +19,12 @@ install:
- if [ ! -f config.summary ] ; then ./configure -prefix `pwd`/build -opensource -confirm-license -nomake examples -nomake tests ; fi - 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 - if [ ! -d build ] ; then make -j2 > /dev/null && make install ; fi
- popd - popd
- ccache -s
script: script:
- mkdir -p build - mkdir -p build
- pushd build - pushd build
- ../qt5/build/bin/qmake .. -config release - ../qt5/build/bin/qmake CONFIG+=ccache .. -config release
- make -j2 - make -j2
- make install - make install
- popd - 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 += translations/zeiterfassung_en.ts \
translations/zeiterfassung_de.ts translations/zeiterfassung_de.ts
include($${PROJECT_ROOT}ccache.pri) include($${PROJECT_ROOT}/ccache.pri)
include($${PROJECT_ROOT}/lrelease.pri) include($${PROJECT_ROOT}/lrelease.pri)

View File

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

View File

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