Skip to content

Commit

Permalink
Merge pull request #453 from zebmason/fail_early
Browse files Browse the repository at this point in the history
Stop on first regression test failure
  • Loading branch information
weshinsley authored Sep 28, 2020
2 parents 0179cef + 61b91bd commit e4350cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/linux_distribution_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: download cmake
run: |
wget https://cmake.org/files/v3.18/cmake-3.18.2-Linux-x86_64.tar.gz
tar xf cmake-3.18.2-Linux-x86_64.tar.gz
- name: build
run: |
mkdir build && cd build
cmake ..
../cmake-3.18.2-Linux-x86_64/bin/cmake ..
make
- name: unit tests
run: |
cd build
ctest -j2 -V -E inttest.*
../cmake-3.18.2-Linux-x86_64/bin/ctest -j2 -V -E inttest.*
- name: regression tests
run: |
cd build
ctest -j2 -V -R inttest.*
../cmake-3.18.2-Linux-x86_64/bin/ctest --stop-on-failure -j2 -V -R inttest.*
test-in-container:
runs-on: ubuntu-latest
Expand All @@ -36,19 +40,19 @@ jobs:
include:
- container_image: "fedora:latest"
cmake: "cmake"
ctest: "ctest"
ctest: "../cmake-3.18.2-Linux-x86_64/bin/ctest"
- container_image: "debian:10"
cmake: "cmake"
ctest: "ctest"
ctest: "../cmake-3.18.2-Linux-x86_64/bin/ctest"
- container_image: "archlinux/base"
cmake: "cmake"
ctest: "ctest"
- container_image: "ubuntu:bionic"
cmake: "../cmake-3.17.2-Linux-x86_64/bin/cmake"
ctest: "ctest"
cmake: "../cmake-3.18.2-Linux-x86_64/bin/cmake"
ctest: "../cmake-3.18.2-Linux-x86_64/bin/ctest"
- container_image: "centos:7"
cmake: "cmake"
ctest: "ctest3"
ctest: "../cmake-3.18.2-Linux-x86_64/bin/ctest"
- container_image: "opensuse/tumbleweed"
cmake: "cmake"
ctest: "ctest"
Expand All @@ -64,9 +68,9 @@ jobs:
run: ./ci/install_dependencies.sh
- name: download cmake
run: |
wget https://cmake.org/files/v3.17/cmake-3.17.2-Linux-x86_64.tar.gz
tar xf cmake-3.17.2-Linux-x86_64.tar.gz
export PATH=$(pwd)/cmake-3.17.2-Linux-x86_64/bin:${PATH}
wget https://cmake.org/files/v3.18/cmake-3.18.2-Linux-x86_64.tar.gz
tar xf cmake-3.18.2-Linux-x86_64.tar.gz
export PATH=$(pwd)/cmake-3.18.2-Linux-x86_64/bin:${PATH}
- name: build
run: |
mkdir build && cd build
Expand All @@ -79,4 +83,4 @@ jobs:
- name: regression tests
run: |
cd build
${{ matrix.ctest }} -j2 -V -R inttest.*
${{ matrix.ctest }} --stop-on-failure -j2 -V -R inttest.*
2 changes: 1 addition & 1 deletion .github/workflows/macos_distribution_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: regression tests
run: |
cd build
ctest -j2 -V -R inttest.*
ctest --stop-on-failure -j2 -V -R inttest.*
2 changes: 1 addition & 1 deletion .github/workflows/windows_distribution_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: regression tests
run: |
cd build
ctest -j2 -V -C Debug -R inttest.*
ctest --stop-on-failure -j2 -V -C Debug -R inttest.*

0 comments on commit e4350cb

Please sign in to comment.