Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Travis less verbose #900

Merged
merged 2 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make Travis less verbose
But preserving error logs
  • Loading branch information
Tachi107 committed Apr 12, 2021
commit ac763338f7126f19402cf2dfd64a0f7cfb4ec25c
25 changes: 12 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Tachi107 marked this conversation as resolved.
Show resolved Hide resolved

# Meson debug build
- meson setup meson_build_debug
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
kiplingw marked this conversation as resolved.
Show resolved Hide resolved

option(BUILD_SHARED_LIBS "build shared library" ON)
option(PISTACHE_BUILD_TESTS "build tests alongside the project" OFF)
Expand Down