Compare commits

..

No commits in common. "4e6cd1266c29883d3d1ce93786625012061f5916" and "9189d2b37470b93fee553cd9e4c330a7c4ad77a9" have entirely different histories.

16 changed files with 37 additions and 48 deletions

View file

@ -13,7 +13,7 @@ steps:
- name: unit tests - name: unit tests
shell: powershell shell: powershell
commands: commands:
- ./tools/ci/amd64/msvc/unit-tests.ps1 - ./tools/ci/steps/amd64/msvc/unit-tests.ps1
--- ---
kind: pipeline kind: pipeline
@ -28,13 +28,13 @@ steps:
image: unit_tests:latest image: unit_tests:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/amd64/gcc/unit-tests.sh - ./tools/ci/steps/amd64/gcc/unit-tests.sh
- name: valgrind - name: valgrind
image: valgrind:latest image: valgrind:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/amd64/gcc/valgrind.sh - ./tools/ci/steps/amd64/gcc/valgrind.sh
--- ---
kind: pipeline kind: pipeline
@ -49,13 +49,13 @@ steps:
image: leak_sanitizer:latest image: leak_sanitizer:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/amd64/clang/lsan.sh - ./tools/ci/steps/amd64/clang/lsan.sh
- name: memory sanitizer - name: memory sanitizer
image: memory_sanitizer:latest image: memory_sanitizer:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/amd64/clang/msan.sh - ./tools/ci/steps/amd64/clang/msan.sh
--- ---
kind: pipeline kind: pipeline
@ -66,15 +66,24 @@ trigger:
- main - main
steps: steps:
- name: clang tidy - name: static_analysis
image: clang_tidy:latest image: static_analysis:latest
pull: if-not-exists pull: if-not-exists
privileged: true privileged: true
commands: commands:
- ./tools/ci/static_analysis/clang_tidy.sh - ./tools/ci/steps/static_analysis.sh
---
kind: pipeline
type: docker
name: style
trigger:
branch:
- main
steps:
- name: clang format - name: clang format
image: clang_format:latest image: clang_format:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/static_analysis/clang_format.sh - ./tools/ci/steps/style.sh

View file

@ -1,26 +0,0 @@
#!/bin/bash
set -e
cd $(git rev-parse --show-toplevel)/
rm -rf ./build
conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-c tools.build:cxxflags='["-fprofile-instr-generate", "-fcoverage-mapping"]' \
-c tools.build:sharedlinkflags='["-fprofile-instr-generate", "-fcoverage-mapping"]' \
-c tools.build:exelinkflags='["-fprofile-instr-generate", "-fcoverage-mapping"]' \
-c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
-s build_type=Release \
-s compiler=clang \
-s compiler.version=20 \
-s compiler.libcxx=libc++ \
-o use_mold=True \
--build=missing
for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test"
"$test"
done

View file

@ -1,24 +1,30 @@
#!/bin/bash #!/bin/bash
set -e set -e
CI_DIR="$(git rev-parse --show-toplevel)/tools/ci/" IMAGE_DIR="$(git rev-parse --show-toplevel)/tools/ci/images"
echo "==> Building image: clang_format" echo "==> Building image: clang format"
docker build -t clang_format -f $CI_DIR/static_analysis/clang_format.dockerfile . cd "$IMAGE_DIR/clang_format"
docker build -t clang_format .
echo "==> Building image: static_analysis" echo "==> Building image: static analysis"
docker build -t clang_tidy -f $CI_DIR/static_analysis/clang_tidy.dockerfile . cd "$IMAGE_DIR/static_analysis"
docker build -t static_analysis .
echo "==> Building image: amd64_gcc_unit_tests" echo "==> Building image: unit tests"
docker build -t amd64_gcc_unit_tests -f $CI_DIR/amd64/gcc/unit_tests.dockerfile . cd "$IMAGE_DIR/unit_tests"
docker build -t unit_tests .
echo "==> Building image: amd64_gcc_valgrind" echo "==> Building image: valgrind"
docker build -t amd64_gcc_valgrind -f $CI_DIR/amd64/gcc/valgrind.dockerfile . cd "$IMAGE_DIR/valgrind"
docker build -t valgrind .
echo "==> Building image: amd64_clang_lsan" echo "==> Building image: leak_sanitizer"
docker build -t amd64_clang_lsan -f $CI_DIR/amd64/clang/lsan.dockerfile . cd "$IMAGE_DIR/leak_sanitizer"
docker build -t leak_sanitizer .
echo "==> Building image: amd64_clang_msan" echo "==> Building image: memory_sanitizer"
docker build -t amd64_clang_msan -f $CI_DIR/amd64/clang/msan.dockerfile . cd "$IMAGE_DIR/memory_sanitizer"
docker build -t memory_sanitizer .
echo "WOOOOOOOOOOOOOOOOH!!! DONE :D" echo "WOOOOOOOOOOOOOOOOH!!! DONE :D"