From bf51ecab038543efe821de01d99302808c0c78a0 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Wed, 12 Aug 2026 09:32:01 +0000 Subject: [PATCH] Moves readmes to separate folder docs --- ci/README.md => docs/developer-push-policy.md | 36 ++++++++++++++++--- scripts/README.md => docs/scripts-usage.md | 0 .../use-scaleway-with-copilot-cli.md | 0 3 files changed, 32 insertions(+), 4 deletions(-) rename ci/README.md => docs/developer-push-policy.md (90%) rename scripts/README.md => docs/scripts-usage.md (100%) rename README-scaleway.md => docs/use-scaleway-with-copilot-cli.md (100%) diff --git a/ci/README.md b/docs/developer-push-policy.md similarity index 90% rename from ci/README.md rename to docs/developer-push-policy.md index 77d230b..1b3089f 100644 --- a/ci/README.md +++ b/docs/developer-push-policy.md @@ -196,11 +196,39 @@ clang-format -i main.cpp tests/test_main.cpp python3 ci/check_pr_policies.py ``` -### Projekt lokal bauen +## Projekt lokal im CI-Container bauen + +Zuerst das lokale CI-Image bauen: + ```bash -cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -cmake --build build --parallel -ctest --test-dir build --output-on-failure +docker build -t lifemaps/ci-cpp:latest -f Dockerfile.ci . +``` + +Danach das Projekt im Container bauen und testen: + +```bash +docker run --rm -it \ + -v "$PWD:/workspace" \ + -w /workspace \ + lifemaps/ci-cpp:latest \ + bash -lc ' + cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug && + cmake --build build --parallel && + ctest --test-dir build --output-on-failure + ' +``` + +Damit wird dieselbe Toolchain verwendet wie in der Jenkins-CI. + + +## Policy-Check lokal im CI-Container ausführen + +```bash +docker run --rm -it \ + -v "$PWD:/workspace" \ + -w /workspace \ + lifemaps/ci-cpp:latest \ + bash -lc 'python3 ci/check_pr_policies.py' ``` --- diff --git a/scripts/README.md b/docs/scripts-usage.md similarity index 100% rename from scripts/README.md rename to docs/scripts-usage.md diff --git a/README-scaleway.md b/docs/use-scaleway-with-copilot-cli.md similarity index 100% rename from README-scaleway.md rename to docs/use-scaleway-with-copilot-cli.md