File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ language : cpp
2+
3+ compiler :
4+ - clang
5+
6+ cache : apt
7+
8+ before_script :
9+ - sudo apt-get update -qq
10+ - sudo add-apt-repository ppa:ubuntugis/ppa -y
11+ - sudo apt-get install bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd pkg-config poppler-utils pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb
12+ - mkdir build
13+ - cd build
14+ - cmake -DWITH_MAPSERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF -DSUPPRESS_QT_WARNINGS=ON ..
15+ - make -j2
16+
17+ script : xvfb-run ctest -j2 --output-on-failure -D Experimental
Original file line number Diff line number Diff line change @@ -275,6 +275,13 @@ IF (ENABLE_TESTS)
275275 add_custom_target (check-no -x COMMAND xvfb-run --server-args="-screen 10,1024x768x24" ctest --output -on -failure)
276276ENDIF (ENABLE_TESTS)
277277
278+ IF (SUPPRESS_QT_WARNINGS)
279+ # Newer versions of UseQt4.cmake include Qt with -isystem automatically
280+ # This can be used to force this behavior on older systems
281+ # Can be removed as soon as Travis-CI updates from precise
282+ INCLUDE_DIRECTORIES (SYSTEM ${QT_INCLUDE_DIR} )
283+ ENDIF (SUPPRESS_QT_WARNINGS)
284+
278285INCLUDE ( ${QT_USE_FILE} )
279286
280287# Disable automatic conversion from QString to ASCII 8-bit strings (char *)
You can’t perform that action at this time.
0 commit comments