-
Notifications
You must be signed in to change notification settings - Fork 23
/
test.bat
31 lines (22 loc) · 904 Bytes
/
test.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@ECHO OFF
ECHO "Please use Java 11 or newer, this BAT doesn't check the Java version"
call "./test-setenv.bat"
if not "%POSTGRES_JDBC_URL%" == "" goto jdbcUrlOk
echo "Please set POSTGRES_JDBC_URL environment variable in test-setenv.bat"
goto end
:jdbcUrlOk
if not "%POSTGRES_JDBC_USERNAME%" == "" goto jdbcUsernameOk
echo "Please set POSTGRES_JDBC_USERNAME environment variable in test-setenv.bat"
goto end
:jdbcUsernameOk
if not "%POSTGRES_JDBC_USERNAME%" == "" goto jdbcPasswordOk
echo "Please set POSTGRES_JDBC_USERNAME environment variable in test-setenv.bat"
goto end
:jdbcPasswordOk
mvnw.cmd -f samples-test clean package ^
-Duser.language=en ^
-Dmidpoint.repository.jdbcUrl=%POSTGRES_JDBC_URL% ^
-Dmidpoint.repository.jdbcUsername=%POSTGRES_JDBC_USERNAME% ^
-Dmidpoint.repository.jdbcPassword=%POSTGRES_JDBC_PASSWORD% ^
-Dtest.config.file=test-config-new-repo.xml
:end