Skip to content

Commit

Permalink
Move ci functions to this repo
Browse files Browse the repository at this point in the history
Only ecl is using these two functions from the komodo repository.
Move them into here so that they can be purged from upstream.
  • Loading branch information
berland committed Sep 20, 2023
1 parent a09f544 commit c01e205
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ci/testkomodo.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit c01e205

Please sign in to comment.