Add configurable Docker host in full db tests
This commit is contained in:
parent
64c954dc58
commit
fdff0bee4e
1 changed files with 5 additions and 2 deletions
|
@ -42,6 +42,9 @@ run_tests() {
|
||||||
SKIP_DB_SCHEMA=true TEST_DATABASE_URI=$1 TEST=true python -m unittest discover -f
|
SKIP_DB_SCHEMA=true TEST_DATABASE_URI=$1 TEST=true python -m unittest discover -f
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CIP=${CONTAINERIP-'127.0.0.1'}
|
||||||
|
echo "> Using container IP address $CIP"
|
||||||
|
|
||||||
# NOTE: MySQL is currently broken on setup.
|
# NOTE: MySQL is currently broken on setup.
|
||||||
# Test (and generate, if requested) via MySQL.
|
# Test (and generate, if requested) via MySQL.
|
||||||
echo '> Starting MySQL'
|
echo '> Starting MySQL'
|
||||||
|
@ -49,7 +52,7 @@ up_mysql
|
||||||
|
|
||||||
echo '> Running Full Test Suite (mysql)'
|
echo '> Running Full Test Suite (mysql)'
|
||||||
set +e
|
set +e
|
||||||
run_tests "mysql+pymysql://root:password@192.168.99.100/genschema"
|
run_tests "mysql+pymysql://root:password@$CIP/genschema"
|
||||||
set -e
|
set -e
|
||||||
down_mysql
|
down_mysql
|
||||||
|
|
||||||
|
@ -59,6 +62,6 @@ up_postgres
|
||||||
|
|
||||||
echo '> Running Full Test Suite (postgres)'
|
echo '> Running Full Test Suite (postgres)'
|
||||||
set +e
|
set +e
|
||||||
run_tests "postgresql://postgres@192.168.99.100/genschema"
|
run_tests "postgresql://postgres@$CIP/genschema"
|
||||||
set -e
|
set -e
|
||||||
down_postgres
|
down_postgres
|
||||||
|
|
Reference in a new issue