1#!/usr/bin/env bash 2# shellcheck disable=SC1091 # the path is created by the script 3 4set -ex 5 6uncollapsed_section_start kdl "Building kdl" 7 8KDL_REVISION="cbbe5fd54505fd03ee34f35bfd16794f0c30074f" 9KDL_CHECKOUT_DIR="/tmp/ci-kdl.git" 10 11mkdir -p ${KDL_CHECKOUT_DIR} 12pushd ${KDL_CHECKOUT_DIR} 13git init 14git remote add origin https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git 15git fetch --depth 1 origin ${KDL_REVISION} 16git checkout FETCH_HEAD 17popd 18 19# Run venv in a subshell, so we don't accidentally leak the venv state into 20# calling scripts 21( 22 python3 -m venv /ci-kdl 23 source /ci-kdl/bin/activate && 24 pushd ${KDL_CHECKOUT_DIR} && 25 pip install -r requirements.txt && 26 pip install . && 27 popd 28) 29 30rm -rf ${KDL_CHECKOUT_DIR} 31 32section_end kdl 33