From 1c95ed11cd013d4658b219bf7979b3c04af58c17 Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 7 Oct 2018 17:28:24 +0200 Subject: [PATCH] Added .travis.yml --- .travis.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b5ce6f5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +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,qtserialport,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 + - pushd ../DbSoftware + - git submodule update --init 3rdparty/Quazip + - popd + - shopt -s dotglob + - mv * ../DbSoftware/DbSketch -v + - mkdir -p ../build_DbSoftware + - pushd ../build_DbSoftware + - ../qt5/build/bin/qmake CONFIG+=ccache ../DbSoftware -config release + - make -j2 sub-DbSketch + - make sub-DbSketch-install_subtargets + - popd