taskwarrior/test/scripts/test_osx.sh
Tomas Babej 19f183159e tests: Fail OS-X test workflow on error in the build process
This sets `set -e` to ensure any errors in the test script are
propagated upwards and noticed by the Github workflow.

Prior to these changes failures in the build process of the tests would
be ignored, and the success / failure would be determined purely by the
return code of the `./problems` script.
2022-12-18 14:19:56 -05:00

18 lines
267 B
Bash

set -ex
brew install gnutls
brew install cmake
brew install libfaketime
git clean -dfx
git submodule init
git submodule update
cmake -DCMAKE_BUILD_TYPE=debug .
make -j2
make install
task --version
pushd test
make
./run_all -v
cat all.log | grep 'not ok'
./problems