forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
28 lines (23 loc) · 800 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- mode: sh -*-
export PIPENV_VENV_IN_PROJECT=true
# Enable packaging and Microcore and Livestatus builds to use our build cache.
# See omd/README.md for further information.
export NEXUS_BUILD_CACHE_URL=https://artifacts.lan.tribe29.com/repository/omd-build-cache
# TODO: Remove the copy-n-paste from direnv's stdlib when everybody uses at least
# direnv 2.14.0 (i.e. at least Ubuntu bionic)
if ! has layout_pipenv; then
layout_pipenv() {
if [[ ! -f Pipfile ]]; then
log_error 'No Pipfile found. Use `pipenv` to create a Pipfile first.'
exit 2
fi
local VENV=$(pipenv --bare --venv 2>/dev/null)
if [[ -z $VENV || ! -d $VENV ]]; then
pipenv install --dev
fi
export VIRTUAL_ENV=$(pipenv --venv)
PATH_add "$VIRTUAL_ENV/bin"
export PIPENV_ACTIVE=1
}
fi
layout pipenv