This document has the following sections:
To build and test the code, you must have a working installation of Bazel. Bazel is an open-source build and test tool similar to Make, Maven, and Gradle. See the Bazel Installation Instructions for more information on installing Bazel on your system.
From the root of the repository, you can run the following to build all Alpaca libraries and tests:
bazel build //alpaca/...
To build a specific target in a more minimal way, you can specify an individual build target:
bazel build //alpaca:alpaca
From the root of the repository, you can run the following to run all of the tests:
bazel test //alpaca/...
To run a specific test in a more minimal way, you can specify an individual test target:
bazel test //alpaca:status_test
To format all C++ source files using clang-format, run the following:
find . -name "*.h" -or -name "*.cpp" | xargs clang-format -i