From aca9664316b0524faca98521e59688126ad73415 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Sun, 24 Dec 2017 21:30:19 +0100 Subject: [PATCH] Added cache again --- .travis.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae9175b..b4a4c17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,16 @@ os: linux dist: trusty compiler: gcc +cache: + directories: + - qt5 + before_script: - - git clone --branch=5.10 git://code.qt.io/qt/qt5.git + - mkdir -p qt5 + - if [ ! -d qt5/.git ] ; then rm qt5 -Rf ; git clone --branch=5.10 git://code.qt.io/qt/qt5.git ; fi - pushd qt5 - - perl init-repository --module-subset=qtbase,qtimageformats - - ./configure -opensource -nomake examples -nomake tests -confirm-license + - if [ ! -d qtbase/.git ] ; then perl init-repository --module-subset=qtbase,qtimageformats ; fi + - if [ ! -f config.summaryr ] ; then ./configure -opensource -nomake examples -nomake tests -confirm-license ; fi - make -j2 - sudo make install - popd