2020-11-19 09:50:16 -05:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
goal=
|
|
|
|
if [ "$RDBMS" == "derby" ]; then
|
|
|
|
goal="-Pdb=derby"
|
2021-06-23 08:56:57 -04:00
|
|
|
elif [ "$RDBMS" == "hsqldb" ]; then
|
|
|
|
goal="-Pdb=hsqldb"
|
|
|
|
elif [ "$RDBMS" == "mysql" ]; then
|
|
|
|
goal="-Pdb=mysql_ci"
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == "mariadb" ]; then
|
2021-02-03 04:55:07 -05:00
|
|
|
goal="-Pdb=mariadb_ci"
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == "postgresql" ]; then
|
2021-02-03 04:55:07 -05:00
|
|
|
goal="-Pdb=pgsql_ci"
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == "oracle" ]; then
|
2021-04-06 08:24:13 -04:00
|
|
|
# I have no idea why, but these tests don't work on GH Actions
|
|
|
|
goal="-Pdb=oracle_ci -PexcludeTests=**.LockTest.testQueryTimeout*"
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == "db2" ]; then
|
2021-02-03 04:55:07 -05:00
|
|
|
goal="-Pdb=db2_ci"
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == "mssql" ]; then
|
2021-02-03 04:55:07 -05:00
|
|
|
goal="-Pdb=mssql_ci"
|
2021-04-06 08:24:13 -04:00
|
|
|
elif [ "$RDBMS" == "hana" ]; then
|
|
|
|
goal="-Pdb=hana_ci"
|
2021-06-23 08:56:57 -04:00
|
|
|
elif [ "$RDBMS" == "sybase" ]; then
|
|
|
|
goal="-Pdb=sybase_ci"
|
2020-11-19 09:50:16 -05:00
|
|
|
fi
|
|
|
|
|
2021-04-06 08:24:13 -04:00
|
|
|
exec ./gradlew check ${goal} -Plog-test-progress=true --stacktrace
|