11language : cpp
22
3+ os :
4+ - linux
5+ - osx
6+
37compiler :
48 - clang
59
@@ -26,40 +30,17 @@ addons:
2630 postgresql : " 9.1"
2731
2832before_install :
29- - export DEBIAN_FRONTEND=noninteractive
30- - sudo add-apt-repository ppa:ubuntugis/ppa -y
31- - sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y # For postgresql-9.1-postgis-2.1
32- - sudo add-apt-repository ppa:smspillaz/cmake-3.0.2 -y
33- - sudo add-apt-repository ppa:kedazo/doxygen-updates-precise -y # For doxygen 1.8.8
34- - sudo apt-get update -qq
35- - sudo apt-get install --force-yes --no-install-recommends --no-install-suggests
36- bison cmake cmake-data doxygen flex git graphviz
37- grass-dev libexpat1-dev libfcgi-dev libgdal1-dev
38- libgeos-dev libgsl0-dev libpq-dev libproj-dev
39- libqscintilla2-dev libqt4-dev libqt4-opengl-dev
40- libqt4-sql-sqlite libqtwebkit-dev libqwt-dev
41- libspatialindex-dev libspatialite-dev libsqlite3-dev
42- lighttpd pkg-config poppler-utils pyqt4-dev-tools
43- python python-dev python-qt4 python-qt4-dev
44- python-sip python-sip-dev spawn-fcgi txt2tags
45- xauth xfonts-100dpi xfonts-75dpi xfonts-base
46- xfonts-scalable xvfb
47- postgresql-9.1-postgis-2.1/precise # postgis one from ubuntugis-unstable, not pgdg
48- - cmake --version
49- - clang --version
33+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then ./ci/travis/before_install-linux.sh; fi"
34+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then ./ci/travis/before_install-osx.sh; fi"
5035
5136install :
52- - mkdir build
53- - cd build
54- - cmake -DWITH_SERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF
55- -DSUPPRESS_QT_WARNINGS=ON -DENABLE_MODELTEST=ON -DENABLE_PGTEST=ON
56- -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=ON -DWITH_PYSPATIALITE=ON ..
37+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then ./ci/travis/install-linux.sh; fi"
38+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then ./ci/travis/install-osx.sh; fi"
5739
5840before_script :
59- - printf "[qgis_test]\nhost=localhost\ndbname=qgis_test\nuser=postgres" > ~/.pg_service.conf
60- - psql -c 'CREATE DATABASE qgis_test;' -U postgres
61- - psql -c 'CREATE EXTENSION postgis;' -U postgres -d qgis_test
62- - psql -f $TRAVIS_BUILD_DIR/tests/testdata/provider/testdata.sql -U postgres -d qgis_test
41+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then ./ci/travis/before_script-linux.sh; fi"
6342
64- script : xvfb-run ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest' -S ../qgis-test-travis.ctest --output-on-failure
43+ script :
44+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then ./ci/travis/script-linux.sh; fi"
45+ - " if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then ./ci/travis/script-osx.sh; fi"
6546
0 commit comments