Skip to content

Commit

Permalink
Revert "ci: capture script failures properly (#156)"
Browse files Browse the repository at this point in the history
This reverts commit 4cdb71f.
  • Loading branch information
alex-liang3 committed Jan 25, 2025
1 parent 9ef8b1e commit e2fd3c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tools/development/helpers/check-format-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ project_directory="$(git rev-parse --show-toplevel)"

pushd "${project_directory}" > /dev/null

clang-format -Werror --dry-run -style=file:thirdparty/clang/.clang-format $(find ~+ src/ include/ test/ bindings/python/src/ -name '*.cpp' -o -name '*.cxx' -o -name '*.hpp' -o -name '*.tpp') \
|| exit 1
clang-format -Werror --dry-run -style=file:thirdparty/clang/.clang-format $(find ~+ src/ include/ test/ bindings/python/src/ -name '*.cpp' -o -name '*.cxx' -o -name '*.hpp' -o -name '*.tpp')

popd > /dev/null
3 changes: 1 addition & 2 deletions tools/development/helpers/check-format-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ project_directory="$(git rev-parse --show-toplevel)"

pushd "${project_directory}" > /dev/null

python${OSTK_PYTHON_VERSION} -m black --check --diff bindings/python/ \
|| exit 1
python${OSTK_PYTHON_VERSION} -m black --check --diff bindings/python/

popd > /dev/null
3 changes: 1 addition & 2 deletions tools/development/helpers/format-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ project_directory="$(git rev-parse --show-toplevel)"

pushd "${project_directory}" > /dev/null

clang-format -i -style=file:thirdparty/clang/.clang-format $(find ~+ src/ include/ test/ bindings/python/src/ -name '*.cpp' -o -name '*.cxx' -o -name '*.hpp' -o -name '*.tpp') \
|| exit 1
clang-format -i -style=file:thirdparty/clang/.clang-format $(find ~+ src/ include/ test/ bindings/python/src/ -name '*.cpp' -o -name '*.cxx' -o -name '*.hpp' -o -name '*.tpp')

popd > /dev/null
3 changes: 1 addition & 2 deletions tools/development/helpers/format-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ project_directory="$(git rev-parse --show-toplevel)"

pushd "${project_directory}" > /dev/null

python${OSTK_PYTHON_VERSION} -m black bindings/python/ \
|| exit 1
python${OSTK_PYTHON_VERSION} -m black bindings/python/

popd > /dev/null
3 changes: 1 addition & 2 deletions tools/development/helpers/test-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ test_directory="${project_directory}/bindings/python/test"

pushd "${test_directory}" > /dev/null

python${OSTK_PYTHON_VERSION} -m pytest -sv ${@} \
|| exit 1
python${OSTK_PYTHON_VERSION} -m pytest -sv ${@}

popd > /dev/null

0 comments on commit e2fd3c5

Please sign in to comment.