Added caching of qt5 in .travis.yml
This commit is contained in:
17
.travis.yml
17
.travis.yml
@@ -5,21 +5,12 @@ dist: trusty
|
|||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
before_install:
|
cache:
|
||||||
|
directories:
|
||||||
install:
|
- qt5
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [ ! -d qt5 ]
|
- if [ ! -d qt5 ] ; then source make_qt.sh ; fi
|
||||||
- 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
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- which qmake
|
- which qmake
|
||||||
|
8
make_qt.sh
Normal file
8
make_qt.sh
Normal file
@@ -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
|
Reference in New Issue
Block a user