Skip to content

Commit

Permalink
ci ctest enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 6, 2020
1 parent e2b0cda commit a606606
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
CMAKE_BUILD_PARALLEL_LEVEL: "2" # 2 cores on each GHA VM, enable parallel builds
CTEST_OUTPUT_ON_FAILURE: "ON" # This way we don't need a flag to ctest
CTEST_PARALLEL_LEVEL: "2"
CTEST_TIME_TIMEOUT: "5" # some failures hang forever
HOMEBREW_NO_ANALYTICS: "ON" # Make Homebrew installation a little quicker
HOMEBREW_NO_AUTO_UPDATE: "ON"
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK: "ON"
Expand Down Expand Up @@ -55,10 +56,15 @@ jobs:
run: cmake -Wdev -DCMAKE_BUILD_TYPE=Release -S . -B build

- name: Build and compile
run: cmake --build build || cmake --build build --verbose --parallel 1
run: cmake --build build

- name: catch build fail
run: cmake --build build --verbose --parallel 1
if: failure()

- name: test
run: cmake --build build --target test
run: ctest --parallel --output-on-failure
working-directory: build

- name: Test in-tree builds
if: contains( matrix.gcc_v, '9') # Only test one compiler on each platform
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

env:
CI: "ON"
CTEST_TIME_TIMEOUT: "5" # some failures hang forever

jobs:
Build:
Expand All @@ -24,7 +25,8 @@ jobs:
- name: CMake build
run: cmake --build build --parallel

- run: cmake --build build --verbose --parallel 1
- name: catch build fail
run: cmake --build build --verbose --parallel 1
if: failure()

- name: CTest
Expand Down

0 comments on commit a606606

Please sign in to comment.