npkpy/bootstrap.sh
botlabsDev 3d81964135 - refactored code,
- added tests,
- switched to snake_case,
- improved ci/cd pipe,
2020-06-25 16:39:57 +02:00

26 lines
541 B
Bash
Executable file

#!/bin/bash
venv=${1:-virtualenv}
## setup virtualenv if not already exist
if [[ ! -e ${venv} ]]; then
virtualenv --python=python ${venv}
${venv}/bin/pip install pip --upgrade
${venv}/bin/pip install pip -r requirements-dev.txt
${venv}/bin/pip install pip -e .
fi
git config user.name "botlabsDev"
git config user.email "botlabs.dev@botlabs.dev"
echo "--git config--"
echo -n "git user:"; git config user.name
echo -n "git email:"; git config user.email
echo "--------------"
## start virtualenv
source ${venv}/bin/activate