File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,32 @@ run_scan_build_clang:
8080 - ./tools/cleanup.sh && ./tools/autogen.sh
8181 - CC=clang CFLAGS="-O0" scan-build-11 ./configure --enable-export-all --enable-swig-python --enable-swig-java --disable-clear-tests --disable-asm
8282 - scan-build-11 --keep-cc --exclude src/secp256k1/ make -j $(($(grep ^processor /proc/cpuinfo | wc -l) / 2))
83+
84+ cmake-test :
85+ image : greenaddress/wallycore@sha256:f159b338f3d25e13958d79fbd709238e3864de5468b9d743625466a0a681e52b
86+ tags :
87+ - ga
88+ script :
89+ - mv _cmake cmake
90+ - mv _CMakeLists.txt CMakeLists.txt
91+ - mv src/_CMakeLists.txt src/CMakeLists.txt
92+ - mv src/ctest/_CMakeLists.txt src/ctest/CMakeLists.txt
93+ - cmake -B build-cmake -S .
94+ -DBUILD_SHARED_LIBS:BOOL=FALSE
95+ -DCMAKE_BUILD_TYPE:STRING=Debug
96+ -DWALLYCORE_ENABLE_TESTS:BOOL=TRUE
97+ -DWALLYCORE_ENABLE_COVERAGE:BOOL=TRUE
98+ - cmake --build build-cmake
99+ # - ctest --test-dir build-cmake --output-junit report.xml --output-on-failure -E "test_(clear|elements_tx)"
100+ - cd build-cmake
101+ - ctest --output-on-failure -E "test_(clear|elements_tx)"
102+ - cd -
103+ - pip install gcovr
104+ - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
105+ coverage : /^\s*lines:\s*\d+.\d+\%/
106+ artifacts :
107+ reports :
108+ # junit: build-cmake/report.xml # junit report generation not available in cmake 3.18
109+ coverage_report :
110+ coverage_format : cobertura
111+ path : coverage.xml
You can’t perform that action at this time.
0 commit comments