Added ccache to travis #62
This commit is contained in:
@@ -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
3
ccache.pri
Normal file
@@ -0,0 +1,3 @@
|
||||
ccache {
|
||||
QMAKE_CXX = ccache $$QMAKE_CXX
|
||||
}
|
@@ -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)
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user