From e1c343d81e003b7717c09e8b12750adf3880dac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjell=20Hedstr=C3=B6m?= Date: Tue, 29 Nov 2022 12:55:40 -0700 Subject: [PATCH] run colored cout snippet in Windows if available (#134) --- appveyor.yml | 5 +++-- scripts/buildAndRunTests.sh | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index befca0d..fc9aaa7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -62,11 +62,12 @@ build_script: cd Release ls -a + + [ -f example_coloredcout.exe ] && example_coloredcout.exe || true - [ -f example_coloredcout ] && ./example_coloredcout || true + [ -f example_logrotate_and_filter.exe ] && example_logrotate_and_filter.exe || true - # Us this for validation after changes: https://ci.appveyor.com/tools/validate-yaml # Lazy safe, using this for running it local diff --git a/scripts/buildAndRunTests.sh b/scripts/buildAndRunTests.sh index b1f3035..1360bc6 100755 --- a/scripts/buildAndRunTests.sh +++ b/scripts/buildAndRunTests.sh @@ -61,5 +61,8 @@ cmake --build . ctest -V sudo make install -# TODO KjellKod: run all examples +# run one snipped example +cd examples +[ -f example_coloredcout ] && ./example_coloredcout || true +[ -f example_logrotate_and_filter ] && ./example_logrotate_and_filter || true