Merge pull request #2187 from coreos-inc/fulldb-for-jenkins

Add configurable Docker host in full db tests
This commit is contained in:
josephschorr 2016-12-01 15:52:27 -05:00 committed by GitHub
commit 7c568e7400

View file

@ -42,6 +42,9 @@ run_tests() {
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.
# Test (and generate, if requested) via MySQL.
echo '> Starting MySQL'
@ -49,7 +52,7 @@ up_mysql
echo '> Running Full Test Suite (mysql)'
set +e
run_tests "mysql+pymysql://root:password@192.168.99.100/genschema"
run_tests "mysql+pymysql://root:password@$CIP/genschema"
set -e
down_mysql
@ -59,6 +62,6 @@ up_postgres
echo '> Running Full Test Suite (postgres)'
set +e
run_tests "postgresql://postgres@192.168.99.100/genschema"
run_tests "postgresql://postgres@$CIP/genschema"
set -e
down_postgres