Skip to content

Commit 3528661

Browse files
committedNov 14, 2014
Add .travis.yml for automated testing
1 parent 5457d72 commit 3528661

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

‎CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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)
276276
ENDIF (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+
278285
INCLUDE( ${QT_USE_FILE} )
279286

280287
# Disable automatic conversion from QString to ASCII 8-bit strings (char *)

0 commit comments

Comments
 (0)
Please sign in to comment.