Update SQL Server docker image URL as the old one does not work anymore and add exclude logic to hibernate-core-jakarta also

This commit is contained in:
Christian Beikov 2021-06-30 19:04:39 +02:00
parent 58517b99d1
commit 044b4b5345
2 changed files with 7 additions and 1 deletions

View File

@ -104,7 +104,7 @@ EOF
mssql() {
docker rm -f mssql || true
docker run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y microsoft/mssql-server-linux:2017-CU13
docker run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-CU13
sleep 5
n=0
until [ "$n" -ge 5 ]

View File

@ -229,6 +229,12 @@ tasks.test {
jvmArgs( ['--add-opens', 'java.base/java.security=ALL-UNNAMED'] )
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
}
// Allow to exclude specific tests
if ( project.hasProperty( 'excludeTests' ) ) {
filter {
excludeTestsMatching project.property( 'excludeTests' ).toString()
}
}
}
task testJar(type: Jar, dependsOn: testClasses) {