Fixed site ids in new integration tests
[check_mk.git] / .envrc
blob1612729be8482068a02319469dd72fb3a449d56d
1 # -*- mode: sh -*-
2 export PIPENV_VENV_IN_PROJECT=true
4 # TODO: Remove the copy-n-paste from direnv's stdlib when everybody uses at least
5 # direnv 2.14.0 (i.e. at least Ubuntu bionic)
6 if ! has layout_pipenv; then
7 layout_pipenv() {
8   if [[ ! -f Pipfile ]]; then
9     log_error 'No Pipfile found.  Use `pipenv` to create a Pipfile first.'
10     exit 2
11   fi
13   local VENV=$(pipenv --bare --venv 2>/dev/null)
14   if [[ -z $VENV || ! -d $VENV ]]; then
15     pipenv install --dev
16   fi
18   export VIRTUAL_ENV=$(pipenv --venv)
19   PATH_add "$VIRTUAL_ENV/bin"
20   export PIPENV_ACTIVE=1
24 layout pipenv