From faa7778685875b4cccf2e756a9aaa60b4254ff5a Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Sun, 24 Dec 2017 20:44:26 +0100 Subject: [PATCH] Added caching of qt5 in .travis.yml --- .travis.yml | 17 ++++------------- make_qt.sh | 8 ++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 make_qt.sh diff --git a/.travis.yml b/.travis.yml index 63aeed6..f0d5e8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,21 +5,12 @@ dist: trusty compiler: - gcc -before_install: - -install: +cache: + directories: + - qt5 before_script: - - if [ ! -d qt5 ] - - then - - git clone --branch=5.10 git://code.qt.io/qt/qt5.git - - pushd qt5 - - perl init-repository --module-subset=qtbase,qtimageformats - - ./configure -static -opensource -nomake examples -nomake tests -confirm-license - - make -j2 - - sudo make install - - popd - - fi + - if [ ! -d qt5 ] ; then source make_qt.sh ; fi script: - which qmake diff --git a/make_qt.sh b/make_qt.sh new file mode 100644 index 0000000..9769b82 --- /dev/null +++ b/make_qt.sh @@ -0,0 +1,8 @@ +#!/bin/bash0 +git clone --branch=5.10 git://code.qt.io/qt/qt5.git +pushd qt5 +perl init-repository --module-subset=qtbase,qtimageformats +./configure -static -opensource -nomake examples -nomake tests -confirm-license +make -j2 +sudo make install +popd \ No newline at end of file