forked from pascalabcnet/pascalabcnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_RebuildReleaseAndRunTestsForGitHubActions.bat
51 lines (39 loc) · 1.12 KB
/
_RebuildReleaseAndRunTestsForGitHubActions.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
call Studio.bat /t:rebuild "/property:Configuration=Release" "/p:Platform=Any CPU" PascalABCNET.sln
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ReleaseGenerators
..\bin\pabcnetc RebuildStandartModules.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd PABCRtl
..\..\bin\pabcnetc PABCRtl.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
..\sn.exe -Vr PABCRtl.dll
..\sn.exe -R PABCRtl.dll KeyPair.snk
..\sn.exe -Vu PABCRtl.dll
copy PABCRtl.dll ..\..\bin\Lib
cd ..
ExecHide.exe gacutil.exe /u PABCRtl
ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll
..\bin\pabcnetc RebuildStandartModules.pas /rebuild /noconsole
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ..\bin
REM MPGORunner.exe
TestRunner.exe 1 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 2 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 3 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 4 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 5 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
TestRunner.exe 6 1
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
pabcnetcclear GitIgnoreTester.pas
GitIgnoreTester.exe NoWait
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
cd ..
GOTO EXIT
:ERROR
PAUSE
:EXIT