timewarrior/test/scripts/test_osx.sh
Thomas Lauf b189ccb020 Replace roff man pages with asciidoctor
This replaces the generation of man pages on project setup
by a on-demand generation via asciidoctor.
An exception are the man pages for the commands `day`, `month`, and `week`
which are simply redirects to the man page `timew-chart.1`. Those are now
static files in the Timewarrior repository.

A CMake find module to detect asciidoctor was added.
If asciidoctor is found, the targets `doc`, `man1`, and `man7` are created.
Those targets are also added to the default build target.

If asciidoctor is not available, the target `doc` is available, but it only
emits a message to install asciidoctor first.

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-21 20:58:30 +01:00

32 lines
No EOL
510 B
Bash

set -x
brew install cmake
brew install pyenv
brew install asciidoctor
pyenv install 3.8.0
pyenv global 3.8.0
eval "$( pyenv init - )"
pip install --upgrade pip
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}