forked from spawluk/UberDeployer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUberDeployer.build
More file actions
69 lines (58 loc) · 2.15 KB
/
UberDeployer.build
File metadata and controls
69 lines (58 loc) · 2.15 KB
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
<?xml version="1.0"?>
<project default="run">
<target name="clean">
<delete dir="Bin" />
</target>
<target name="configure">
<property name="msbuild.path" value="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" />
<if test="${not file::exists(msbuild.path)}">
<property name="devenv.com.path" value="C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe" />
</if>
</target>
<target name="restoreNugetPackages">
<exec program="Lib/Nuget/nuget.exe">
<arg value="restore" />
<arg value="Src\UberDeployer.sln" />
</exec>
</target>
<target name="publishWebApplication">
<delete dir="bin\UberDeployer.WebApp" />
<exec program="${msbuild.path}" failonerror="true">
<arg value="Src/UberDeployer.WebApp/UberDeployer.WebApp.csproj" />
<arg value="/p:configuration=release" />
<arg value="/t:resolvereferences" />
<arg value="/t:_copywebapplication" />
<arg value="/t:transformwebconfig" />
<arg value="/p:outdir=..\..\bin\temp\" />
<arg value="/p:webprojectoutputdir=..\..\bin\UberDeployer.WebApp" />
</exec>
<delete dir="bin\temp" />
</target>
<target name="build">
<exec program="${msbuild.path}">
<arg value="src/UberDeployer.sln" />
<arg value="/p:Configuration=Release" />
<arg value="/p:DebugType=pdbonly" />
<arg value="/p:AllowUnsafeBlocks=true" />
</exec>
<copy todir="bin\UberDeployer.Agent.NtService\UberDeployer.ConsoleApp">
<fileset basedir="bin\UberDeployer.ConsoleApp">
<include name="**/*" />
</fileset>
</copy>
<call target="publishWebApplication" />
</target>
<target name="test">
<nunit2>
<formatter type="Xml" usefile="true" extension=".xml" outputdir="Tests/Results" />
<test assemblyname="tests\UberDeployer.Tests.dll" />
</nunit2>
</target>
<target name="run">
<call target="clean" />
<call target="configure" />
<call target="restoreNugetPackages" />
<call target="build" />
<call target="test" />
</target>
</project>