From c3a49b219f10e04c18cf02af234847e22aa998ce Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Fri, 5 Oct 2018 11:35:33 +0200 Subject: [PATCH] Added .travis.yml --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..08cdaed --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +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.10 git://code.qt.io/qt/qt5.git ../qt5 ; fi + - pushd ../qt5 + - if [ ! -d qtbase/.git ] ; then perl init-repository --module-subset=qtbase,qtimageformats,qtmultimedia,qttools ; 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 + +script: + - ccache -s + - git clone https://github.com/0xFEEDC0DE64/DbSoftware.git ../DbSoftware + - shopt -s dotglob + - mv * ../DbSoftware/DbPathFinder -v + - mkdir -p ../build_DbSoftware + - pushd ../build_DbSoftware + - ../qt5/build/bin/qmake CONFIG+=ccache ../DbSoftware -config release + - make -j2 sub-DbPathFinder + - make sub-DbPathFinder-install_subtargets + - popd