mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
c96ee18086
https://gitlab.freedesktop.org/gfx-ci/ci-kdl/-/merge_requests/2 brought a bunch of improvements. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31110>
29 lines
668 B
Bash
Executable File
29 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# shellcheck disable=SC1091 # the path is created by the script
|
|
|
|
set -ex
|
|
|
|
KDL_REVISION="cbbe5fd54505fd03ee34f35bfd16794f0c30074f"
|
|
KDL_CHECKOUT_DIR="/tmp/ci-kdl.git"
|
|
|
|
mkdir -p ${KDL_CHECKOUT_DIR}
|
|
pushd ${KDL_CHECKOUT_DIR}
|
|
git init
|
|
git remote add origin https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git
|
|
git fetch --depth 1 origin ${KDL_REVISION}
|
|
git checkout FETCH_HEAD
|
|
popd
|
|
|
|
# Run venv in a subshell, so we don't accidentally leak the venv state into
|
|
# calling scripts
|
|
(
|
|
python3 -m venv /ci-kdl
|
|
source /ci-kdl/bin/activate &&
|
|
pushd ${KDL_CHECKOUT_DIR} &&
|
|
pip install -r requirements.txt &&
|
|
pip install . &&
|
|
popd
|
|
)
|
|
|
|
rm -rf ${KDL_CHECKOUT_DIR}
|