From b51e7baeddb7bfc5197ebafd1419ed9914f22b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Wed, 20 Sep 2023 13:22:09 +0200 Subject: [PATCH] Move ci functions to this repo Only ecl is using these two functions from the komodo repository. Move them into here so that they can be purged from upstream. --- ci/testkomodo.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ci/testkomodo.sh b/ci/testkomodo.sh index d9347deb4..67345f722 100755 --- a/ci/testkomodo.sh +++ b/ci/testkomodo.sh @@ -1,3 +1,25 @@ +function ci_install_cmake { + pip install cmake ninja + + local root=${KOMODO_ROOT}/${CI_KOMODO_RELEASE}/root + + export CMAKE_GENERATOR=Ninja + export CMAKE_PREFIX_PATH=$root + + # Colour! + export CFLAGS="${CFLAGS:-} -fdiagnostics-color=always" + export CXXFLAGS="${CXXFLAGS:-} -fdiagnostics-color=always" + export LDFLAGS="${LDFLAGS:-} -fdiagnostics-color=always" + + export LD_LIBRARY_PATH=$root/lib:$root/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +} +function ci_install_conan { + pip install "conan<2" + + # Conan v1 bundles its own certs due to legacy reasons, so we point it + # to the system's certs instead. + export CONAN_CACERT_PATH=/etc/pki/tls/cert.pem +} build_and_run_ctest () { pushd $CI_TEST_ROOT cmake $CI_SOURCE_ROOT \