timewarrior/test/scripts/test_osx.sh
Thomas Lauf fa4371d30c Return exit code of ./problems, not the last command, on macOS
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-03-01 20:33:40 +01:00

30 lines
No EOL
459 B
Bash

set -x
brew install cmake
brew install pyenv
pyenv install 3.8.0
pyenv global 3.8.0
eval "$( pyenv init - )"
pip install python-dateutil
git clean -dfx
git submodule init
git submodule update
cmake -DCMAKE_BUILD_TYPE=debug .
make -j2
make install
pushd test || exit
make
./run_all -v
grep 'not ok' all.log
set +x
./problems
EXIT_CODE=$?
echo "timew $( timew --version )"
python --version
python3 --version
cmake --version
clang --version
exit ${EXIT_CODE}