Skip to content

Commit

Permalink
Merge pull request #47 from mekanix/feature/multidb-tests
Browse files Browse the repository at this point in the history
Test SQL only
  • Loading branch information
mekanix authored Mar 18, 2020
2 parents cae9278 + 161ba75 commit f25086d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit f25086d

Please sign in to comment.