Skip to content

Commit f25086d

Browse files
authored
Merge pull request #47 from mekanix/feature/multidb-tests
Test SQL only
2 parents cae9278 + 161ba75 commit f25086d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export VIRTUALENV=${VIRTUALENV:="${app_name}back"}
88
export FLASK_ENV=${FLASK_ENV:="production"}
99
export PY_VERSION=${PY_VERSION:="3.7"}
1010
export SYSPKG=${SYSPKG:="no"}
11+
export DBTYPE=${DBTYPE:="sql"}
1112

1213

1314
setup() {
@@ -22,7 +23,7 @@ setup() {
2223
if [ "${update}" != "no" ]; then
2324
pip install -U pip
2425
pip install -U wheel
25-
pip install -e .
26+
pip install -e ".[${DBTYPE}]"
2627
fi
2728
fi
2829
if [ -e "${BIN_DIR}/../migrations/main/001_initial.py" ]; then

bin/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -e
66
export BIN_DIR=`dirname $0`
77
export PROJECT_ROOT="${BIN_DIR}/.."
88
export FLASK_ENV="testing"
9+
910
. ${BIN_DIR}/common.sh
1011
setup
1112

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

2324

25+
cd "${PROJECT_ROOT}"
2426
rm -rf `find . -name __pycache__`
2527
rm -rf .pytest_cache
2628
flake8 .

0 commit comments

Comments
 (0)