tobiko/tools/ci/activate
Federico Ressi 1929871d16 Allow to pick python version in CI tools
Change-Id: I96c1e26af6aaefa26b164ed9dd9ff0e29fb702af
2019-11-18 09:05:58 +00:00

9 lines
309 B
Plaintext

function tools_dir {
local tools_dir=$(dirname "${BASH_SOURCE[0]}")
PATH=${CI_TOOLS_ORIGINAL_PATH:-${PATH}} "${tools_dir}/realpath" "${tools_dir}"
}
export CI_TOOLS_DIR=${CI_TOOLS_DIR:-$(tools_dir)}
export CI_TOOLS_ORIGINAL_PATH=${CI_TOOLS_ORIGINAL_PATH:-${PATH}}
export PATH=${CI_TOOLS_DIR}:${PATH}