Skip to content

Commit

Permalink
Start adding build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpareja committed Jul 12, 2013
1 parent 49620c5 commit 235b601
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

*resharper.user
*"resharper.user
[Dd]ebug/
[Rr]elease/
build/
[Bb]in/
[Oo]bj/
build_output/*
*.suo
*.sln.cache
_ReSharper.*/
Expand All @@ -13,7 +14,6 @@ logs/
UpgradeLog*
_UpgradeReport_Files/
deploy/
[Rr]eport/*
*.Publish.xml
publish/*
nuget/
Expand Down
8 changes: 0 additions & 8 deletions build.bat

This file was deleted.

22 changes: 22 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo off
set OUTDIR=%~dp0build_output

rem Try to find the highest version of MSBuild available...
set MSBUILD=%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe
if not exist %MSBUILD% set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
if not exist %MSBUILD% set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild.exe
if not exist %MSBUILD% (
echo MSBuild not found, please update %0
exit /b 1
)

rem Clear out the output directory
rmdir /S /Q "%OUTDIR%"

SET MSBUILD_ARGUMENTS=ConfigAutoMapper.sln /t:Clean;Build /p:Configuration=Release "/p:Platform=Any CPU" /v:m

"%MSBUILD%" %MSBUILD_ARGUMENTS% /p:TargetFrameworkVersion=net20 "/p:OutDir=%OUTDIR%\lib\net20\\"
"%MSBUILD%" %MSBUILD_ARGUMENTS% /p:TargetFrameworkVersion=net30 "/p:OutDir=%OUTDIR%\lib\net30\\"
"%MSBUILD%" %MSBUILD_ARGUMENTS% /p:TargetFrameworkVersion=net35 "/p:OutDir=%OUTDIR%\lib\net35\\"
"%MSBUILD%" %MSBUILD_ARGUMENTS% /p:TargetFrameworkVersion=net40 "/p:OutDir=%OUTDIR%\lib\net40\\"
"%MSBUILD%" %MSBUILD_ARGUMENTS% /p:TargetFrameworkVersion=net45 "/p:OutDir=%OUTDIR%\lib\net45\\"
17 changes: 17 additions & 0 deletions test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
set results=build_output\report

rem Try to find the highest version of MSBuild available...
set MSBUILD=%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe
if not exist %MSBUILD% set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
if not exist %MSBUILD% set MSBUILD=%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild.exe
if not exist %MSBUILD% (
echo MSBuild not found, please update %0
exit /b 1
)

%MSBUILD% ConfigAutoMapper.sln /t:Rebuild /p:Configuration=Release

if not exist %results% mkdir %results%
lib\nunit\net-2.0\nunit-console.exe build\ConfigAutoMapper.Tests.dll /xml=%results%\ConfigAutoMapper.xml

0 comments on commit 235b601

Please sign in to comment.