diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..44b4932 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: cpp +os: linux +sudo: false +dist: trusty +compiler: + - gcc + - clang + +cache: + directories: + - ~/.ccache + - qt5 + +install: + - mkdir -p qt5 + - if [ ! -d qt5/.git ] ; then rm qt5 -Rf ; git clone --branch=5.15 git://code.qt.io/qt/qt5.git ; fi + - pushd qt5 + - if [ ! -d qtbase/.git ] ; then perl init-repository --module-subset=qtbase ; 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 + - popd + - ccache -s + +script: + - mkdir -p build + - pushd build + - ../qt5/build/bin/qmake CONFIG+=ccache .. -config release + - make -j2 + - popd diff --git a/SprintPlanningTool.pro b/SprintPlanningTool.pro index 3fc51d8..51062ba 100644 --- a/SprintPlanningTool.pro +++ b/SprintPlanningTool.pro @@ -1,6 +1,6 @@ QT = core gui widgets -CONFIG += c++17 +CONFIG += c++14 DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 @@ -19,3 +19,5 @@ HEADERS += \ mainwindow.h \ stripsgrid.h \ stripwidget.h + +OTHER_FILES += .travis.yml