-
Notifications
You must be signed in to change notification settings - Fork 55
/
deploy.bat
127 lines (112 loc) · 6.12 KB
/
deploy.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@echo off
SET DIR=%~d0%~p0%
SET BINARYDIR=%DIR%build_outputAnyCPU\AutoTest.NET
SET BINARYDIRx86=%DIR%build_outputx86\AutoTest.TestRunner
SET DEPLOYDIR=%DIR%ReleaseBinaries
SET CASTLEDIR=%DIR%lib\Castle.Windsor
SET MSPEC4DIR=%DIR%lib\MSpec
SET VSADDINDIR=%DIR%addins\VisualStudio\FilesToDeploy
SET RESOURCES=%DIR%src\Resources
IF NOT EXIST "%DEPLOYDIR%" (
mkdir "%DEPLOYDIR%"
mkdir "%DEPLOYDIR%\Icons"
mkdir "%DEPLOYDIR%\TestRunners"
mkdir "%DEPLOYDIR%\TestRunners\NUnit"
mkdir "%DEPLOYDIR%\TestRunners\XUnit"
mkdir "%DEPLOYDIR%\TestRunners\MSTest"
mkdir "%DEPLOYDIR%\TestRunners\MSpec"
mkdir "%DEPLOYDIR%\TestRunners\MbUnit"
) ELSE (
IF NOT EXIST "%DEPLOYDIR%\Icons" (
mkdir "%DEPLOYDIR%\Icons"
) ELSE (
del "%DEPLOYDIR%\Icons\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners" (
mkdir "%DEPLOYDIR%\TestRunners"
mkdir "%DEPLOYDIR%\TestRunners\NUnit"
mkdir "%DEPLOYDIR%\TestRunners\XUnit"
mkdir "%DEPLOYDIR%\TestRunners\MSTest"
mkdir "%DEPLOYDIR%\TestRunners\MSpec"
mkdir "%DEPLOYDIR%\TestRunners\MbUnit"
mkdir "%DEPLOYDIR%\TestRunners\SimpleTesting"
) ELSE (
IF NOT EXIST "%DEPLOYDIR%\TestRunners\NUnit" (
mkdir "%DEPLOYDIR%\TestRunners\NUnit"
) ELSE (
del "%DEPLOYDIR%\TestRunners\NUnit\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners\XUnit" (
mkdir "%DEPLOYDIR%\TestRunners\XUnit"
) ELSE (
del "%DEPLOYDIR%\TestRunners\XUnit\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners\MSTest" (
mkdir "%DEPLOYDIR%\TestRunners\MSTest"
) ELSE (
del "%DEPLOYDIR%\TestRunners\MSTest\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners\MSpec" (
mkdir "%DEPLOYDIR%\TestRunners\MSpec"
) ELSE (
del "%DEPLOYDIR%\TestRunners\MSpec\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners\MbUnit" (
mkdir "%DEPLOYDIR%\TestRunners\MbUnit"
) ELSE (
del "%DEPLOYDIR%\TestRunners\MbUnit\*" /Q
)
IF NOT EXIST "%DEPLOYDIR%\TestRunners\SimpleTesting" (
mkdir "%DEPLOYDIR%\TestRunners\SimpleTesting"
) ELSE (
del "%DEPLOYDIR%\TestRunners\SimpleTesting\*" /Q
)
del "%DEPLOYDIR%\TestRunners\*" /Q
)
del %DEPLOYDIR%\* /Q
)
copy "%BINARYDIR%\AutoTest.Messages.dll" "%DEPLOYDIR%\AutoTest.Messages.dll"
copy "%BINARYDIR%\AutoTest.Core.dll" "%DEPLOYDIR%\AutoTest.Core.dll"
copy "%BINARYDIR%\AutoTest.Console.exe" "%DEPLOYDIR%\AutoTest.Console.exe"
copy "%BINARYDIR%\AutoTest.UI.dll" "%DEPLOYDIR%\AutoTest.UI.dll"
copy "%BINARYDIR%\AutoTest.WinForms.exe" "%DEPLOYDIR%\AutoTest.WinForms.exe"
copy "%BINARYDIR%\AutoTest.config.template" "%DEPLOYDIR%\AutoTest.config"
copy "%DIR%README" "%DEPLOYDIR%\README"
copy "%DIR%LICENSE" "%DEPLOYDIR%\AutoTest.License.txt"
copy "%BINARYDIR%\AutoTest.TestRunner.exe" "%DEPLOYDIR%\AutoTest.TestRunner.exe"
copy "%BINARYDIR%\App"_3.5.config "%DEPLOYDIR%\AutoTest.TestRunner.exe.config"
copy "%BINARYDIR%\AutoTest.TestRunner.exe" "%DEPLOYDIR%\AutoTest.TestRunner.v4.0.exe"
copy "%BINARYDIR%\AutoTest.TestRunner.exe.config" "%DEPLOYDIR%\AutoTest.TestRunner.v4.0.exe.config"
copy "%BINARYDIRx86%\AutoTest.TestRunner.exe" "%DEPLOYDIR%\AutoTest.TestRunner.x86.exe"
copy "%BINARYDIR%\App"_3.5.config "%DEPLOYDIR%\AutoTest.TestRunner.x86.exe.config"
copy "%BINARYDIRx86%\AutoTest.TestRunner.exe" "%DEPLOYDIR%\AutoTest.TestRunner.x86.v4.0.exe"
copy "%BINARYDIRx86%\AutoTest.TestRunner.exe.config" "%DEPLOYDIR%\AutoTest.TestRunner.x86.v4.0.exe.config"
copy "%BINARYDIR%\AutoTest.TestRunners.Shared.dll" "%DEPLOYDIR%\AutoTest.TestRunners.Shared.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.NUnit.dll" "%DEPLOYDIR%\TestRunners\NUnit\AutoTest.TestRunners.NUnit.dll"
copy "%BINARYDIR%\nunit.core.dll" "%DEPLOYDIR%\TestRunners\NUnit\nunit.core.dll"
copy "%BINARYDIR%\nunit.core.interfaces.dll" "%DEPLOYDIR%\TestRunners\NUnit\nunit.core.interfaces.dll"
copy "%BINARYDIR%\nunit.util.dll" "%DEPLOYDIR%\TestRunners\NUnit\nunit.util.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.XUnit.dll" "%DEPLOYDIR%\TestRunners\XUnit\AutoTest.TestRunners.XUnit.dll"
copy "%BINARYDIR%\xunit.runner.utility.dll" "%DEPLOYDIR%\TestRunners\XUnit\xunit.runner.utility.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.MSTest.dll" "%DEPLOYDIR%\TestRunners\MSTest\AutoTest.TestRunners.MSTest.dll"
copy "%BINARYDIR%\celer.Core.dll" "%DEPLOYDIR%\TestRunners\MSTest\celer.Core.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.MSpec.dll" "%DEPLOYDIR%\TestRunners\MSpec\AutoTest.TestRunners.MSpec.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.MbUnit.dll" "%DEPLOYDIR%\TestRunners\MbUnit\AutoTest.TestRunners.MbUnit.dll"
copy "%BINARYDIR%\Gallio.dll" "%DEPLOYDIR%\TestRunners\MbUnit\Gallio.dll"
copy "%BINARYDIR%\AutoTest.TestRunners.SimpleTesting.dll" "%DEPLOYDIR%\TestRunners\SimpleTesting\AutoTest.TestRunners.SimpleTesting.dll"
copy "%BINARYDIR%\Simple.Testing.Framework.dll" "%DEPLOYDIR%\TestRunners\SimpleTesting\Simple.Testing.Framework.dll"
copy "%BINARYDIR%\Simple.Testing.ClientFramework.dll" "%DEPLOYDIR%\TestRunners\SimpleTesting\Simple.Testing.ClientFramework.dll"
copy "%BINARYDIR%\PowerAssert.dll" "%DEPLOYDIR%\TestRunners\SimpleTesting\PowerAssert.dll"
copy "%DIR%\lib\Gallio\Gallio.XmlSerializers.dll" "%DEPLOYDIR%\TestRunners\MbUnit\Gallio.XmlSerializers.dll"
copy "%BINARYDIR%\mbunit.config" "%DEPLOYDIR%\TestRunners\MbUnit\mbunit.config"
copy "%BINARYDIR%\Worst.Testing.Framework.Ever.dll" "%DEPLOYDIR%\Worst.Testing.Framework.Ever.dll"
copy "%DIR%\src\AutoTest.TestRunner\Plugins\Microsoft.VisualStudio.QualityTools.UnitTestFramework\Worst.Testing.Framework.Ever.License.txt" "%DEPLOYDIR%\Worst.Testing.Framework.Ever.License.txt"
copy "%DIR%\src\AutoTest.TestRunner\Plugins\Microsoft.VisualStudio.QualityTools.UnitTestFramework\NUnit.License.txt" "%DEPLOYDIR%\NUnit.License.txt"
copy "%BINARYDIR%\FSWatcher.dll" "%DEPLOYDIR%\FSWatcher.dll"
copy "%BINARYDIR%\Castle.Core.dll" "%DEPLOYDIR%\Castle.Core.dll"
copy "%BINARYDIR%\Castle.Facilities.Logging.dll" "%DEPLOYDIR%\Castle.Facilities.Logging.dll"
copy "%CASTLEDIR%\Castle.license.txt" "%DEPLOYDIR%\Castle.license.txt"
copy "%BINARYDIR%\Castle.Windsor.dll" "%DEPLOYDIR%\Castle.Windsor.dll"
copy "%BINARYDIR%\Mono.Cecil.dll" "%DEPLOYDIR%\Mono.Cecil.dll"
copy "%DIR%\Resources\progress.gif" "%DEPLOYDIR%\progress.gif"
copy "%RESOURCES%\*" "%DEPLOYDIR%\Icons"