-
Notifications
You must be signed in to change notification settings - Fork 91
/
run-tests.bat
73 lines (56 loc) · 3.53 KB
/
run-tests.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@ECHO OFF
REM build project, install artifacts and run integration tests with different settings (providers and serialization type)
set startTime=%time%
REM first build project using default setting and install all artifacts in local maven reposistory
call:execute "mvn clean install"
cd integration-test
REM execute integration-test using xmemcached and all serialization types
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=PROVIDER -Dspring.profiles.active=xml"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JAVA -Dspring.profiles.active=xml"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JSON"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JSON -Dspring.profiles.active=xml"
REM execute integration-test using spymemcached and all serialization types
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=PROVIDER -Dspring.profiles.active=xml"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JAVA -Dspring.profiles.active=xml"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JSON"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JSON -Dspring.profiles.active=xml"
REM execute integration-test using aws-elasticache and all serialization types
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=PROVIDER -Dspring.profiles.active=xml"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JAVA -Dspring.profiles.active=xml"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JSON"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JSON -Dspring.profiles.active=xml"
cd ..
cd spring-cache-integration-test
REM execute spring-cache-integration-test using xmemcached and all serialization types
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Pxmemcached -Dssm.defaultSerializationType=JSON"
REM execute spring-cache-integration-test using spymemcached and all serialization types
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Pspymemcached -Dssm.defaultSerializationType=JSON"
REM execute spring-cache-integration-test using aws-elasticache and all serialization types
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=PROVIDER"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JAVA"
call:execute "mvn verify -Paws-elasticache -Dssm.defaultSerializationType=JSON"
cd ..
echo Start Time: %startTime%
echo Finish Time: %time%
goto:eof
:execute
echo ######### Executing: %~1 in %CD% #########
call %~1
if not "%ERRORLEVEL%" == "0" (
echo Error while executing %~1 in %CD%
call:exit 2> NUL
) else echo ######### Executed: %~1 in %CD% #########
goto:eof
:exit
() creates an syntax error, stops immediatly
goto:eof