-
Notifications
You must be signed in to change notification settings - Fork 24
/
make.cmd
115 lines (93 loc) · 2.4 KB
/
make.cmd
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
@echo off
setlocal
set PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework\v4.0.30319;%WINDIR%\Microsoft.NET\Framework\v3.5
:getopts
if "%1"=="" (goto :default) else (goto :%1)
goto :exit
:default
goto :debug
:debug
set _target=Build
set _flavour=Debug
goto :main
:clean-debug
set _target=Clean
set _flavour=Debug
goto :main
:stage-debug
set _target=Stage
set _flavour=Debug
goto :main
:release
set _target=Build
set _flavour=Release
goto :main
:clean-release
set _target=Clean
set _flavour=Release
goto :main
:stage-release
set _target=Stage
set _flavour=Release
goto :main
:package-release
set _target=Package
set _flavour=Release
goto :main
:clean
echo No target 'clean'. Try 'clean-debug' or 'clean-release'.
goto :exit
:stage
echo No target 'stage'. Try 'stage-debug' or 'stage-release'.
goto :exit
:package
echo No target 'package'. Try 'package-release'.
goto :exit
:test
echo No target 'test'. Try 'test-smoke', 'test-ironpython', 'test-cpython', or 'test-all'.
goto :exit
:test-smoke
pushd bin\v2Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net35.xml
popd
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net40.xml
popd
pushd bin\v45Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net45.xml
popd
goto :exit
:test-ironpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:IronPython -result:ironpython-result.xml
popd
goto :exit
:test-cpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython,AllCPython -result:cpython-result.xml
popd
goto :exit
:test-all
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -result:all-result.xml
popd
goto :exit
:test-custom
pushd bin\Debug
shift
IronPythonTestConsole.exe IronPythonTest -result:custom-result.xml %1 %2 %3 %4 %5 %6 %7 %8 %9
popd
goto :exit
:restore
set _target=RestoreReferences
set _flavour=Release
goto :main
:distclean
msbuild /t:DistClean /p:BuildFlavour=Release /verbosity:minimal /nologo /p:Platform="Any CPU"
msbuild /t:DistClean /p:BuildFlavour=Debug /verbosity:minimal /nologo /p:Platform="Any CPU"
goto :main
:main
msbuild Build.proj /t:%_target% /p:BuildFlavour=%_flavour% /verbosity:minimal /nologo /p:Platform="Any CPU"
goto :exit
:exit
endlocal