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"