From 7fe36eead17ee1afb9ba26e1e4eb8613b559f71d Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Fri, 6 Mar 2015 10:36:40 +0100 Subject: Use ctest for testing Test were enabled with the enable_testing command. Nevertheless this method is very basic. Include CTest, as this cmake utility enables automatic build + test + coverage generation + memchek test (valgrind) + sending report in one command: ```make Experimental``` There are far more features added by this utility, see: http://www.cmake.org/Wiki/CMake/Testing_With_CTest#Dashboards Signed-off-by: Kevin Rocard --- .travis.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 990f08c..92def31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,20 +12,26 @@ before_install: - sudo apt-get update -qq install: - - sudo apt-get install --yes swig cmake g++-4.8 + - sudo apt-get install --yes swig cmake valgrind g++-4.8 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100 - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 100 # how to build script: - - cmake . && + - ( mkdir build && cd build && + cmake .. && make -j && sudo make install && - CTEST_OUTPUT_ON_FAILURE=1 make test - - cd skeleton-subsystem && + CTEST_OUTPUT_ON_FAILURE=1 make test ) + - ( cd skeleton-subsystem && cmake . && make && - sudo make install + sudo make install ) + - ( cd build && + cmake -DCMAKE_BUILD_TYPE=Debug .. && + make -j && + sudo make install && + CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalCoverage ExperimentalMemCheck ) notifications: email: -- cgit v1.1