From bc42b6abb383ca4e31f2f946ac6e75cc0f8b8085 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Sun, 12 Apr 2015 00:38:59 +0200 Subject: [Travis] No longer install debug build Debug build used to be installed as it was required for make test. As make test is now stand alone, do not install debug builds. This has several advantages: - slightly faster builds. - make test without install is actually tested by travis. Debug binaries used to overwrite release ones that were installed presciently. As it is no longer the case, and to avoid tests to use installed binaries instead of the local ones, test the debug build *before* the release one. As the debug build is now build (first) in it's own folder, debug and release build can not interfere. Signed-off-by: Kevin Rocard --- .travis.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index b42a71a..3fec8b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,10 @@ install: # how to build script: + - ( mkdir build_debug && cd build_debug && + cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. && + make -j && + CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalMemCheck ) - ( mkdir build && cd build && cmake .. && make -j && @@ -32,19 +36,14 @@ script: make && sudo make install && sudo ldconfig ) - - ( cd build && - cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. && - make -j && - sudo make install && - sudo ldconfig && - CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalMemCheck ) after_success: # Push coverage info on coveralls.io. # Ignore generated files, samples and tests - coveralls - --exclude "build/bindings/python" - --exclude "build/CMakeFiles" + --exclude "build_debug/bindings/python" + --exclude "build_debug/CMakeFiles" + --exclude "build" --exclude "skeleton-subsystem" --exclude "test/test-subsystem" --exclude "bindings/c/Test.cpp" -- cgit v1.1