From a609e0f8d77c45e44a0a92e753d71d700056bf91 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sat, 2 Apr 2016 16:26:12 +0200 Subject: [PATCH] Configure coverity scan for travis --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index d5785b6c..8b08d596 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,21 +26,23 @@ addons: name: "DanielChappuis/reactphysics3d" description: "Build submitted via Travis CI" notification_email: chappuis.daniel@gmail.com - build_command_prepend: "cd build_directory; cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False ../" - build_command: "make" + build_command_prepend: "cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False ." + build_command: "make" branch_pattern: develop branches: only: - master - develop script: - - mkdir build_directory - - cd build_directory - - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../ + # Build in debug mode with double precision + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True . - make && make test ARGS="-V" - - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../ + # Build in debug mode with single precision + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True . - make && make test ARGS="-V" - - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True ../ + # Build in release mode with double precision + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=True -DCOMPILE_TESTS=True . - make && make test ARGS="-V" - - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../ + # Build in release mode with single precision + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True . - make && make test ARGS="-V"