automerge/scripts/ci/cmake-docs
Andrew Jeffery 0a86a4d92c Don't build tests for docs
The test `CMakeLists.txt` brings in cmocka but we don't actually need to
build the tests to get the docs. This just makes the cmake docs script
tell cmake not to build docs.
2022-07-12 09:59:03 +01:00

10 lines
224 B
Bash
Executable file

#!/usr/bin/env bash
set -eoux pipefail
mkdir -p automerge-c/build
cd automerge-c/build
cmake -B . -S .. -DBUILD_TESTING=OFF
cmake --build . --target automerge_docs
echo "Try opening automerge-c/build/src/html/index.html"