mergeception
authorsheepluva
Sat, 29 Nov 2014 14:37:31 +0100
changeset 10570 a781c9dc27ec
parent 10568 5a867053add8 (current diff)
parent 10567 9744ca2764d6 (diff)
child 10572 c4e86a2efc55
mergeception
--- a/.travis.yml	Sat Nov 29 05:25:34 2014 +0100
+++ b/.travis.yml	Sat Nov 29 14:37:31 2014 +0100
@@ -25,7 +25,7 @@
   - sudo apt-get update -qq
   - sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-net1.2-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-bytestring-show-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-dataenc-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev freeglut3-dev libglew1.6-dev
 script: 
-  - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1
+  - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1 && make test_verbose
 notifications:
   irc:
     channels:
--- a/CMakeLists.txt	Sat Nov 29 05:25:34 2014 +0100
+++ b/CMakeLists.txt	Sat Nov 29 14:37:31 2014 +0100
@@ -230,7 +230,11 @@
 
 include(${CMAKE_MODULE_PATH}/cpackvars.cmake)
 
+if(NOT BUILD_ENGINE_C)
 enable_testing()
+endif(NOT BUILD_ENGINE_C)
+add_custom_target(test         COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random)
+add_custom_target(test_verbose COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random -V)
 
 set(LUATESTS_DIR "${CMAKE_SOURCE_DIR}/tests/lua")
 set(TESTSDATA_DIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data")
--- a/cmake_modules/cpackvars.cmake	Sat Nov 29 05:25:34 2014 +0100
+++ b/cmake_modules/cpackvars.cmake	Sat Nov 29 14:37:31 2014 +0100
@@ -35,6 +35,7 @@
     ".swp"
     #version control
     "\\\\.hg"
+    "\\\\.git"
     "\\\\.orig$"
     #output binary/library
     "\\\\.exe$"