diff --git a/README.md b/README.md index 8d79e43..52c2ecc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # AstroParse β€” Code to Cosmic JSON πŸš€ [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT) +[![Docker Image](https://img.shields.io/docker/pulls/silvesterhsu/astroparse.svg)](https://hub.docker.com/r/silvesterhsu/astroparse) **Turn C++ code into LLM-digestible JSON – because AI deserves X-ray vision for code!** Powered by Clang AST dissection, Bazel/Docker industrial pipelines, and JSON that pleases both machines and humans. @@ -43,7 +44,7 @@ Enter the build env Build the code ``` bash -./build.sh +./scripts/build.sh ``` ------ @@ -97,7 +98,7 @@ public: 1. **Fork This Repo**: Clone your personal universe branch 2. **Code Style**: Follow `.clang-format` – follow Google style -3. **Tests**: All PRs must survive `bazel test //...` +3. **Tests**: All PRs must pass `./scripts/test.sh` ------ @@ -108,4 +109,5 @@ public: ------ **Crafted with ❀️ and Clang by Seel.Xu** + *β€œAny sufficiently advanced code parser is indistinguishable from magic.”* – Arthur C. Clarke (remixed) \ No newline at end of file diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..ca9fd47 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +# Bazel test + +bazel test $(bazel query //...) --action_env=LIBRARY_PATH=$LIBRARY_PATH --nocache_test_results