Skip to content
Permalink
Browse files

Add .travis.yml for automated testing

  • Loading branch information
m-kuhn committed Nov 13, 2014
1 parent 5457d72 commit 35286613d20bc6b3fca355c9df69732f876c46ed
Showing with 24 additions and 0 deletions.
  1. +17 −0 .travis.yml
  2. +7 −0 CMakeLists.txt
@@ -0,0 +1,17 @@
language: cpp

compiler:
- clang

cache: apt

before_script:
- sudo apt-get update -qq
- sudo add-apt-repository ppa:ubuntugis/ppa -y
- 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
- mkdir build
- cd build
- cmake -DWITH_MAPSERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF -DSUPPRESS_QT_WARNINGS=ON ..
- make -j2

script: xvfb-run ctest -j2 --output-on-failure -D Experimental
@@ -275,6 +275,13 @@ IF (ENABLE_TESTS)
add_custom_target(check-no-x COMMAND xvfb-run --server-args="-screen 10,1024x768x24" ctest --output-on-failure)
ENDIF (ENABLE_TESTS)

IF (SUPPRESS_QT_WARNINGS)
# Newer versions of UseQt4.cmake include Qt with -isystem automatically
# This can be used to force this behavior on older systems
# Can be removed as soon as Travis-CI updates from precise
INCLUDE_DIRECTORIES(SYSTEM ${QT_INCLUDE_DIR})
ENDIF (SUPPRESS_QT_WARNINGS)

INCLUDE( ${QT_USE_FILE} )

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

0 comments on commit 3528661

Please sign in to comment.
You can’t perform that action at this time.