diff --git a/.travis.yml b/.travis.yml index 3a1ae44a6..32fee6529 100644 --- a/.travis.yml +++ b/.travis.yml @@ -250,8 +250,7 @@ before_script: # Print debug system information - cat /proc/sys/kernel/core_pattern - cat /etc/default/apport || true - - service --status-all || true - - initctl list || true + - systemctl list-units --type=service --state=running || true # Meson debug build - meson setup meson_build_debug @@ -299,24 +298,24 @@ script: # Set the ulimit - ulimit -c unlimited -S - # CMake debug build - - cmake --build cmake_build_debug --parallel 2 --target all test -- ARGS='-V' - - # CMake debug build, no SSL - - cmake --build cmake_build_debug-nossl --parallel 2 --target all test -- ARGS='-V' - - # CMake release build - - cmake --build cmake_build_release --parallel 2 -- ARGS='-V' - # Meson debug build - - meson compile -C meson_build_debug --jobs 2 && meson test -C meson_build_debug || (cat meson_build_debug/meson-logs/testlog.txt && false) + - meson compile -C meson_build_debug --jobs 2 && meson test -C meson_build_debug --print-errorlogs --no-stdsplit # Meson debug build, no SSL - - meson compile -C meson_build_debug_nossl --jobs 2 && meson test -C meson_build_debug_nossl || (cat meson_build_debug/meson-logs/testlog.txt && false) + - meson compile -C meson_build_debug_nossl --jobs 2 && meson test -C meson_build_debug_nossl --print-errorlogs --no-stdsplit # Meson release build - meson compile -C meson_build_release --jobs 2 + # CMake debug build + - CTEST_OUTPUT_ON_FAILURE=True cmake --build cmake_build_debug --parallel 2 --target all test + + # CMake debug build, no SSL + - CTEST_OUTPUT_ON_FAILURE=True cmake --build cmake_build_debug-nossl --parallel 2 --target all test + + # CMake release build + - cmake --build cmake_build_release --parallel 2 + after_failure: - CRASHFILES=$(find /var/crash/ -mindepth 1 -maxdepth 1 -print) - echo "$CRASHFILES" diff --git a/CMakeLists.txt b/CMakeLists.txt index d30b4e71a..171fc7a10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ project (pistache include(GNUInstallDirs) -add_compile_options(-Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers) +add_compile_options(-Wall -Wextra -Wpedantic -Wconversion -Wno-sign-conversion -Wno-missing-field-initializers) option(BUILD_SHARED_LIBS "build shared library" ON) option(PISTACHE_BUILD_TESTS "build tests alongside the project" OFF)