From 7553cf7d49161e00d40f94823263d788b1d9b9dc Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 20 Apr 2021 21:41:09 +0200 Subject: [PATCH] Added .travis.yml --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3f17527 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: cpp +os: linux +dist: bionic +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,qtcharts,qtserialbus ; fi + - if [ ! -f config.summary ] ; then ./configure -prefix `pwd`/build -opensource -confirm-license -no-opengl -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