Permalink
Browse files

Added new, simpler (ihmo) build script

  • Loading branch information...
erikbra committed Oct 20, 2017
1 parent 310b39d commit ca43ae00ea4c921b5ba5ac6370a592f7cdc1500e
View
@@ -100,6 +100,7 @@
<nant buildfile="${dirs.current.file}${path.separator}versionBuilder.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}generateBuildInfo.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}manifestBuilder.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}nugetRestore.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}compile.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}environmentBuilder.step" inheritall="true" />
<nant buildfile="${dirs.current.file}${path.separator}analyze.step" inheritall="true" />
View
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<project name="Compiler" default="go">
<property name="solution.path" value="${dirs.current}${path.separator}${path_to_solution}${path.separator}${project.name}.sln" />
<property name="app.nuget" value="nuget" />
<target name="go" depends="run_tasks" />
<target name="run_tasks">
<call target="restore" if="${target::exists('restore')}" />
</target>
<target name="restore">
<echo level="Warning" message="Nuget restore ${project::get-name()}" />
<exec program="${app.nuget}"
workingdir="${dirs.build}"
commandline="restore ${solution.path}" />
</target>
</project>
View
@@ -0,0 +1,45 @@
$MSBUILD=msbuild
$root = $PSScriptRoot;
$CODEDROP="$($root)\code_drop";
$MERGEDIR="$($CODEDROP)\merge";
$LOGDIR="$($CODEDROP)\log";
$ILMERGE="$($root)\lib\ILMerge\ILMerge.exe";
# $OUTDIR="$($root)\product\build_output\RoundhouseNew"
$OUTDIR="$($root)\build_output\RoundhousE\net461"
$TESTOUTDIR="$($root)\build_output\RoundhousE.UnitTests\net461"
pushd $root
"`n * Restoring nuget packages"
nuget restore -NonInteractive -Verbosity quiet
"`n * Building"
msbuild /nologo /v:q /fl /flp:"LogFile=$LOGDIR\msbuild.log;Verbosity=m" /p:Configuration=Build /p:Platform="Any CPU"
# Find nunit3-console dynamically
"`n * Looking for nunit3-console.exe"
$nunit = $(dir -r $env:HOME\.nuget\packages\nunit* -i nunit3-console.exe | select -last 1)
" - Found at $($nunit)"
"`n * Running unit tests`n"
$tests = $(dir "$($TESTOUTDIR)\*.tests.dll");
& $nunit --noheader --output "$($LOGDIR)\nunit.log" --err="$($LOGDIR)\nunit.errlog" $tests
pushd $OUTDIR
if (! (Test-Path $LOGDIR)) {
mkdir $LOGDIR
}
if (! (Test-Path $MERGEDIR)) {
mkdir $MERGEDIR
}
"`n * ILMerging"
& $ILMERGE /internalize:$($root)\build.custom\ilmerge.internalize.ignore.txt /target:exe /out:$MERGEDIR\rh.exe /log:$LOGDIR\ilmerge.log /ndebug /zeroPeKind /allowDup rh.exe $(dir *.dll)
popd
popd
@@ -31,6 +31,16 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Build|AnyCPU' ">
<OutputPath>..\..\build_output\RoundhousE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -32,6 +32,15 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Build|AnyCPU' ">
<OutputPath>..\..\build_output\RoundhousE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
@@ -32,6 +32,15 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Build|AnyCPU' ">
<OutputPath>..\..\build_output\RoundhousE\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -38,7 +38,7 @@
<LangVersion>5</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Build|AnyCPU' ">
<OutputPath>..\..\build_output\RoundhousE\</OutputPath>
<OutputPath>..\..\build_output\RoundhousE.IntegrationTests\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -12,6 +12,10 @@
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Build|AnyCPU' ">
<OutputPath>..\..\build_output\RoundhousE.UnitTests\</OutputPath>
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
View
@@ -58,12 +58,12 @@ Global
{A95DE649-D5BA-4402-9D9C-3D8D67E2FF44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A95DE649-D5BA-4402-9D9C-3D8D67E2FF44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A95DE649-D5BA-4402-9D9C-3D8D67E2FF44}.Release|Any CPU.Build.0 = Release|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Build|Any CPU.ActiveCfg = Release|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Build|Any CPU.Build.0 = Release|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Release|Any CPU.Build.0 = Release|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Build|Any CPU.ActiveCfg = Build|Any CPU
{0726928C-FDAC-4C79-B423-841C7E0DF5B8}.Build|Any CPU.Build.0 = Build|Any CPU
{7CC86537-E4F4-42F0-973F-39F38E43E347}.Build|Any CPU.ActiveCfg = Release|Any CPU
{7CC86537-E4F4-42F0-973F-39F38E43E347}.Build|Any CPU.Build.0 = Release|Any CPU
{7CC86537-E4F4-42F0-973F-39F38E43E347}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -76,60 +76,60 @@ Global
{97CA60FD-D550-4098-8B59-E6CD1F1A3AF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97CA60FD-D550-4098-8B59-E6CD1F1A3AF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97CA60FD-D550-4098-8B59-E6CD1F1A3AF2}.Release|Any CPU.Build.0 = Release|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Build|Any CPU.ActiveCfg = Release|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Build|Any CPU.Build.0 = Release|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Release|Any CPU.Build.0 = Release|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Build|Any CPU.ActiveCfg = Release|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Build|Any CPU.Build.0 = Release|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Build|Any CPU.ActiveCfg = Build|Any CPU
{705033B8-10BA-4E7F-854E-08A7C5590DC5}.Build|Any CPU.Build.0 = Build|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Release|Any CPU.Build.0 = Release|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Build|Any CPU.ActiveCfg = Release|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Build|Any CPU.Build.0 = Release|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Build|Any CPU.ActiveCfg = Build|Any CPU
{3828D379-C96A-49C8-8BC9-0182CC8C55B1}.Build|Any CPU.Build.0 = Build|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Release|Any CPU.Build.0 = Release|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Build|Any CPU.ActiveCfg = Release|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Build|Any CPU.Build.0 = Release|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Build|Any CPU.ActiveCfg = Build|Any CPU
{71419DBB-4809-4102-A002-D484242FCFC9}.Build|Any CPU.Build.0 = Build|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Release|Any CPU.Build.0 = Release|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Build|Any CPU.ActiveCfg = Release|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Build|Any CPU.Build.0 = Release|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Build|Any CPU.ActiveCfg = Build|Any CPU
{F02B7642-3EC4-4374-BBBE-7857A93EA5D9}.Build|Any CPU.Build.0 = Build|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Release|Any CPU.Build.0 = Release|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Build|Any CPU.ActiveCfg = Release|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Build|Any CPU.Build.0 = Release|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Build|Any CPU.ActiveCfg = Build|Any CPU
{4CF5718B-9C74-4590-9848-A81360AE1D22}.Build|Any CPU.Build.0 = Build|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Release|Any CPU.Build.0 = Release|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Build|Any CPU.ActiveCfg = Release|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Build|Any CPU.Build.0 = Release|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Build|Any CPU.ActiveCfg = Build|Any CPU
{35E058E3-8FEE-4107-AEDC-37A452C588EC}.Build|Any CPU.Build.0 = Build|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Release|Any CPU.Build.0 = Release|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Build|Any CPU.ActiveCfg = Release|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Build|Any CPU.Build.0 = Release|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Build|Any CPU.ActiveCfg = Build|Any CPU
{1D41D70E-E310-4699-B7CB-C1F77476A685}.Build|Any CPU.Build.0 = Build|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Release|Any CPU.Build.0 = Release|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Build|Any CPU.ActiveCfg = Release|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Build|Any CPU.Build.0 = Release|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Build|Any CPU.ActiveCfg = Build|Any CPU
{41CE538E-E6F1-4AB6-AB66-508DEF669A39}.Build|Any CPU.Build.0 = Build|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Release|Any CPU.Build.0 = Release|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Build|Any CPU.ActiveCfg = Build|Any CPU
{3447F080-CF50-4B02-9521-671E7AEE8D34}.Build|Any CPU.Build.0 = Build|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

0 comments on commit ca43ae0

Please sign in to comment.