Added ccache to travis #62
This commit is contained in:
@@ -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
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 += 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)
|
||||||
|
|
||||||
|
@@ -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)
|
||||||
|
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user