Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit e1289ef

Browse files
Pawel Karczewskiigchor
authored andcommitted
Add C++20 build to CI
1 parent 886ffc5 commit e1289ef

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

utils/docker/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ if [[ -z "${COMMAND}" ]]; then
5858
;;
5959
release)
6060
builds=(tests_gcc_release_cpp17_no_valgrind
61-
tests_clang_release_cpp11_no_valgrind)
61+
tests_clang_release_cpp11_no_valgrind
62+
tests_clang_release_cpp20_no_valgrind)
6263
COMMAND="./run-build.sh ${builds[@]}";
6364
;;
6465
valgrind)

utils/docker/run-build.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,44 @@ function tests_gcc_release_cpp17_no_valgrind() {
207207
printf "$(tput setaf 1)$(tput setab 7)BUILD ${FUNCNAME[0]} END$(tput sgr 0)\n\n"
208208
}
209209

210+
###############################################################################
211+
# BUILD tests_clang_release_cpp20_no_valgrind llvm
212+
###############################################################################
213+
214+
function tests_clang_release_cpp20_no_valgrind() {
215+
printf "\n$(tput setaf 1)$(tput setab 7)BUILD ${FUNCNAME[0]} START$(tput sgr 0)\n"
216+
217+
mkdir build && cd build
218+
219+
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/pmdk/lib/pkgconfig/ \
220+
CC=clang CXX=clang++ \
221+
cmake .. -DDEVELOPER_MODE=1 \
222+
-DCHECK_CPP_STYLE=${CHECK_CPP_STYLE} \
223+
-DCMAKE_BUILD_TYPE=Release \
224+
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
225+
-DTRACE_TESTS=1 \
226+
-DCOVERAGE=${COVERAGE} \
227+
-DCXX_STANDARD=20 \
228+
-DTESTS_USE_VALGRIND=0 \
229+
-DTESTS_LONG=${TESTS_LONG} \
230+
-DTESTS_PMREORDER=${TESTS_PMREORDER} \
231+
-DTEST_DIR=${TEST_DIR} \
232+
-DTESTS_USE_FORCED_PMEM=${TESTS_USE_FORCED_PMEM} \
233+
-DTESTS_COMPATIBILITY=1 \
234+
-DTESTS_CONCURRENT_GDB=1 \
235+
-DUSE_ASAN=${TESTS_USAN} \
236+
-DUSE_UBSAN=${TESTS_UBSAN}
237+
238+
make -j$(nproc)
239+
ctest --output-on-failure -E "_pmreorder" --timeout ${TEST_TIMEOUT}
240+
if [ "${COVERAGE}" == "1" ]; then
241+
upload_codecov tests_clang_release_cpp20
242+
fi
243+
244+
workspace_cleanup
245+
printf "$(tput setaf 1)$(tput setab 7)BUILD ${FUNCNAME[0]} END$(tput sgr 0)\n\n"
246+
}
247+
210248
###############################################################################
211249
# BUILD tests_package
212250
###############################################################################

0 commit comments

Comments
 (0)