ci(amd64/clang/coverage): replace conan commands with cmake
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
dc0258219d
commit
f0f8836042
1 changed files with 8 additions and 12 deletions
|
|
@ -3,25 +3,21 @@
|
||||||
set -e
|
set -e
|
||||||
cd $(git rev-parse --show-toplevel)/
|
cd $(git rev-parse --show-toplevel)/
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
mkdir -p ./build/coverage/ && cd build
|
||||||
|
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
export DISPLAY=:99
|
export DISPLAY=:99
|
||||||
export CXX=$(which clang++)
|
export CXX=$(which clang++)
|
||||||
export CC=$(which clang)
|
export CC=$(which clang)
|
||||||
|
|
||||||
conan build . \
|
cmake .. \
|
||||||
-c tools.system.package_manager:mode=install \
|
-G Ninja \
|
||||||
-c tools.cmake.cmaketoolchain:generator=Ninja \
|
-DCMAKE_LINKER_TYPE=MOLD \
|
||||||
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-s build_type=Release \
|
-DENABLE_LLVM_COVERAGE=ON \
|
||||||
-s compiler=clang \
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
-s compiler.version=20 \
|
&& cmake --build . -j`nproc`
|
||||||
-s compiler.libcxx=libc++ \
|
|
||||||
-o use_mold=True \
|
|
||||||
-o enable_llvm_coverage=True \
|
|
||||||
--build=missing
|
|
||||||
|
|
||||||
mkdir -p ./build/coverage/
|
|
||||||
for test in $(find ./build -type f -name '*_tests' -executable); do
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
||||||
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "$test")").profraw";
|
export LLVM_PROFILE_FILE="./build/coverage/$(basename "$(dirname "$test")").profraw";
|
||||||
echo ${LLVM_PROFILE_FILE} >> ./build/coverage/list;
|
echo ${LLVM_PROFILE_FILE} >> ./build/coverage/list;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue