Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2019-10-12 18:57:53 +0300
committeronqtam <vik.kirilov@gmail.com>2019-12-17 01:17:29 +0300
commitd1de6180c7557e6b3fa3945ed712602ee14a448e (patch)
tree43ab42bc516e5470da347287454108bb5611ecef /.github
parent2e3d265bdd1a0369eae3cb5f21129617a1ca2aa5 (diff)
Use ctest environment variables.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml22
1 files changed, 12 insertions, 10 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d0019f4f..3e1855ca 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,6 +11,8 @@ jobs:
CMAKE_GENERATOR: Ninja
ASAN_OPTIONS: strict_string_checks=true:detect_odr_violation=2:detect_stack_use_after_return=true:check_initialization_order=true:strict_init_order=true
TSAN_OPTIONS: force_seq_cst_atomics=1
+ CTEST_OUTPUT_ON_FAILURE: ON
+ CTEST_PARALLEL_LEVEL: 2
strategy:
fail-fast: false
@@ -407,14 +409,14 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Release x64
run: |
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
# Valgrind doesn't support the latest macOS versions.
# `-DCMAKE_CXX_FLAGS=""` overrides CXXFLAGS (disables sanitizers).
@@ -425,7 +427,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="" -DDOCTEST_TEST_MODE=VALGRIND
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Release x64 Valgrind
if: runner.os == 'Linux'
@@ -433,7 +435,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="" -DDOCTEST_TEST_MODE=VALGRIND
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Debug x64 Thread Sanitizers
if: runner.os == 'Linux' || runner.os == 'macOS'
@@ -441,7 +443,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="$TSAN_FLAGS" -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Debug x64 without RTTI
if: runner.os == 'Linux' || runner.os == 'macOS'
@@ -449,7 +451,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fno-rtti" -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build x64 Debug without exceptions
if: runner.os == 'Linux' || runner.os == 'macOS'
@@ -479,7 +481,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Release x86
if: (runner.os == 'Windows' && matrix.compiler != 'gcc') || runner.os == 'Linux'
@@ -487,7 +489,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DDOCTEST_TEST_MODE=COMPARE
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Debug x86 Valgrind
if: runner.os == 'Linux'
@@ -495,7 +497,7 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-m32" -DDOCTEST_TEST_MODE=VALGRIND
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest
- name: Build & Test Release x86 Valgrind
if: runner.os == 'Linux'
@@ -503,4 +505,4 @@ jobs:
cmake -E remove_directory build
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-m32" -DDOCTEST_TEST_MODE=VALGRIND
cmake --build build
- cd build && ctest -j2 --output-on-failure
+ cd build && ctest