Skip to content

Commit 21702ba

Browse files
committedApr 9, 2016
Container based Qt4 builds
1 parent 965cef2 commit 21702ba

File tree

4 files changed

+65
-79
lines changed

4 files changed

+65
-79
lines changed
 

‎.travis.yml

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,54 @@
1-
21
matrix:
32
include:
4-
# QT4 based build with Python 2 // using a sudo environment
3+
# QT4 based build with Python 2.7 // using container based builds and prebuild binary dependencies in osgeo4travis
54
- os: linux
65
language: cpp
76
env: QT_VERSION=4
8-
sudo: true
9-
dist: precise
10-
group: legacy
7+
sudo: false
8+
cache:
9+
apt: true
10+
directories:
11+
- $HOME/.ccache
12+
compiler: clang
1113
addons:
12-
postgresql: "9.1"
13-
compiler:
14-
- clang
14+
postgresql: "9.4"
15+
apt:
16+
sources:
17+
- llvm-toolchain-precise-3.6
18+
- ubuntu-toolchain-r-test
19+
- george-edison55-precise-backports # doxygen 1.8.3
20+
packages:
21+
- bison
22+
- clang-3.6
23+
- doxygen
24+
- flex
25+
- flip
26+
- libfcgi-dev
27+
- libpq-dev
28+
- libqscintilla2-dev
29+
- libqt4-dev
30+
- libqt4-opengl-dev
31+
- libqt4-sql-sqlite
32+
- libqtwebkit-dev
33+
- libqwt-dev
34+
- libspatialindex-dev
35+
- libspatialite-dev
36+
- libsqlite3-dev
37+
- pkg-config
38+
- poppler-utils
39+
- pyqt4-dev-tools
40+
- python
41+
- python-dev
42+
- python-numpy
43+
- python-pip
44+
- python-psycopg2
45+
- python-qscintilla2
46+
- python-qt4-dev
47+
- python-qt4-sql
48+
- python-sip
49+
- python-sip-dev
50+
- txt2tags
51+
- xvfb
1552
# QT5 based build with Python 3 // using container based builds and prebuild binary dependencies in osgeo4travis
1653
- os: linux
1754
language: python # This lets us use newer python versions from virtualenv

‎ci/travis/linux/qt4/before_install.sh

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,9 @@
11
export DEBIAN_FRONTEND=noninteractive
22

3-
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
4-
sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8 main' -y
3+
pushd ${HOME}
54

6-
sudo add-apt-repository ppa:ubuntugis/ppa -y
7-
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y # For postgresql-9.1-postgis-2.1
8-
sudo add-apt-repository ppa:smspillaz/cmake-3.0.2 -y
9-
sudo add-apt-repository ppa:kedazo/doxygen-updates-precise -y # For doxygen 1.8.8
10-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
11-
sudo apt-get update -qq
12-
sudo apt-get install --force-yes --no-install-recommends --no-install-suggests \
13-
bison \
14-
cmake \
15-
cmake-data \
16-
doxygen \
17-
flex \
18-
gdal-bin \
19-
git \
20-
graphviz \
21-
grass-dev \
22-
libexpat1-dev \
23-
libfcgi-dev \
24-
libgdal1-dev \
25-
libgeos-dev \
26-
libgsl0-dev \
27-
libpq-dev \
28-
libproj-dev \
29-
libqca2-dev \
30-
libqca2-plugin-ossl \
31-
libqscintilla2-dev \
32-
libqt4-dev \
33-
libqt4-opengl-dev \
34-
libqt4-sql-sqlite \
35-
libqtwebkit-dev \
36-
libqwt-dev \
37-
libspatialindex-dev \
38-
libspatialite-dev \
39-
libsqlite3-dev \
40-
lighttpd \
41-
pkg-config \
42-
poppler-utils \
43-
pyqt4-dev-tools \
44-
python \
45-
python-dev \
46-
python-qt4 \
47-
python-qt4-dev \
48-
python-qt4-sql \
49-
python-qscintilla2 \
50-
python-sip \
51-
python-sip-dev \
52-
python-psycopg2 \
53-
python-numpy \
54-
python-gdal \
55-
spawn-fcgi \
56-
txt2tags \
57-
xauth \
58-
xfonts-100dpi \
59-
xfonts-75dpi \
60-
xfonts-base \
61-
xfonts-scalable \
62-
xvfb \
63-
python-pip \
64-
flip \
65-
jq \
66-
postgresql-9.1-postgis-2.1/precise # from ubuntugis-unstable, not pgdg
67-
68-
sudo -H pip install autopep8 # TODO when switching to trusty or above: replace python-pip with python-autopep8
69-
sudo -H pip install nose2 pyyaml mock future
70-
71-
#update clang
72-
sudo apt-get install --force-yes llvm-3.8 llvm-3.8-dev clang-3.8 libstdc++-4.9-dev
5+
curl -L https://github.com/opengisch/osgeo4travis/archive/qt4bin.tar.gz | tar -xzC /home/travis --strip-components=1
6+
curl -L https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz | tar --strip-components=1 -zxC /home/travis/osgeo4travis
737

8+
popd
9+
pip install --user autopep8 nose2 pyyaml mock future

‎ci/travis/linux/qt4/install.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
mkdir build
22
cd build
33

4-
export CXX="clang++-3.8"
5-
export CC="clang-3.8"
4+
ln -s ${HOME}/osgeo4travis/bin/ccache ${HOME}/osgeo4travis/bin/clang++-3.6
5+
ln -s ${HOME}/osgeo4travis/bin/ccache ${HOME}/osgeo4travis/bin/clang-3.6
6+
7+
ccache -s
8+
9+
export CXX="clang++-3.6"
10+
export CC="clang-3.6"
11+
export PATH=${HOME}/osgeo4travis/bin:${PATH}
612

713
cmake --version
814
${CC} --version
15+
${CXX} --version
916

1017
CLANG_WARNINGS="-Wimplicit-fallthrough"
1118

1219
cmake -DWITH_SERVER=ON \
20+
-DCMAKE_PREFIX_PATH=/home/travis/osgeo4travis \
1321
-DWITH_STAGED_PLUGINS=ON \
1422
-DWITH_GRASS=ON \
1523
-DSUPPRESS_QT_WARNINGS=ON \

‎ci/travis/linux/qt4/script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
export CCACHE_CPP2=YES
2+
export PYTHONPATH=${HOME}/osgeo4travis/lib/python2.7/site-packages/
3+
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH}
4+
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
5+
16
xvfb-run ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest' -S ./qgis-test-travis.ctest --output-on-failure

0 commit comments

Comments
 (0)
Please sign in to comment.