Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export VIRTUALENV=${VIRTUALENV:="${app_name}back"}
export FLASK_ENV=${FLASK_ENV:="production"}
export PY_VERSION=${PY_VERSION:="3.7"}
export SYSPKG=${SYSPKG:="no"}
export DBTYPE=${DBTYPE:="sql"}


setup() {
Expand All @@ -22,7 +23,7 @@ setup() {
if [ "${update}" != "no" ]; then
pip install -U pip
pip install -U wheel
pip install -e .
pip install -e ".[${DBTYPE}]"
fi
fi
if [ -e "${BIN_DIR}/../migrations/main/001_initial.py" ]; then
Expand Down
2 changes: 2 additions & 0 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -e
export BIN_DIR=`dirname $0`
export PROJECT_ROOT="${BIN_DIR}/.."
export FLASK_ENV="testing"

. ${BIN_DIR}/common.sh
setup

Expand All @@ -21,6 +22,7 @@ if [ "${CI}" = "ci" ]; then
fi


cd "${PROJECT_ROOT}"
rm -rf `find . -name __pycache__`
rm -rf .pytest_cache
flake8 .
Expand Down