Moves readmes to separate folder docs
This commit is contained in:
3 files changed
+32
-4
No files matched your search
@@ -196,11 +196,39 @@ clang-format -i main.cpp tests/test_main.cpp
|
|||||||
python3 ci/check_pr_policies.py
|
python3 ci/check_pr_policies.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### Projekt lokal bauen
|
## Projekt lokal im CI-Container bauen
|
||||||
|
|
||||||
|
Zuerst das lokale CI-Image bauen:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
docker build -t lifemaps/ci-cpp:latest -f Dockerfile.ci .
|
||||||
cmake --build build --parallel
|
```
|
||||||
ctest --test-dir build --output-on-failure
|
|
||||||
|
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'
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user