Permalink
Browse files

Build changes

 - Don't build docs for normal build
 - Fix build versioning
 - Delete build folder before build
  • Loading branch information...
1 parent 93c2dd2 commit 7f905c6483d9dbf816704621e0f4f83f27cd53b1 @DamianEdwards DamianEdwards committed Aug 22, 2012
Showing with 8 additions and 5 deletions.
  1. +7 −4 Build/Build.proj
  2. +1 −1 build-packages.cmd
View
11 Build/Build.proj
@@ -62,7 +62,7 @@
<ReplaceWith>$(Version)</ReplaceWith>
</RegexTransform>
<RegexTransform Include="$(ProjectRoot)\SignalR.Client.JS\jquery.signalR.core.js">
- <Find>SignalR JavaScript Library v\d+\.\d+</Find>
+ <Find>SignalR JavaScript Library v\d+\.\d+\.\d+</Find>
<ReplaceWith>SignalR JavaScript Library v$(PackageVersion)</ReplaceWith>
</RegexTransform>
<RegexTransform Include="$(ProjectRoot)\SignalR\Scripts\hubs.js">
@@ -82,14 +82,15 @@
<TestProjects Include="$(ProjectRoot)\SignalR.Tests\bin\$(Configuration)\SignalR.Tests.dll" />
</ItemGroup>
- <Target Name="Go" DependsOnTargets="UpdateVersion; Build; RunTests; BuildDocs;">
+ <Target Name="Go" DependsOnTargets="UpdateVersion; Build; RunTests;">
</Target>
<Target Name="RunTests">
<xunit Assembly="%(TestProjects.FullPath)" Xml="$(TestResultsPath)\SignalR.Tests.XunitResults.xml" Verbose="true" />
</Target>
<Target Name="CreateOutputDir">
+ <RemoveDir Directories="$(ArtifactsDir)" />
<MakeDir Directories="$(ArtifactsDir)" Condition="!Exists('$(ArtifactsDir)')" />
<MakeDir Directories="$(TestResultsPath)" Condition="!Exists('$(TestResultsPath)')" />
<MakeDir Directories="$(DocsPath)" Condition="!Exists('$(DocsPath)')" />
@@ -174,8 +175,10 @@
<RemoveDir Directories="$(ScriptTempPath)" />
<MakeDir Directories="$(ScriptTempPath)" />
- <Copy SourceFiles="$(ProjectRoot)\SignalR.Client.JS\bin\jquery.signalR.js" DestinationFiles="$(ScriptTempPath)\jquery.signalR-$(JsVersion).js" />
- <Copy SourceFiles="$(ProjectRoot)\SignalR.Client.JS\bin\jquery.signalR.min.js" DestinationFiles="$(ScriptTempPath)\jquery.signalR-$(JsVersion).min.js" />
+ <Copy SourceFiles="$(ProjectRoot)\SignalR.Client.JS\bin\jquery.signalR.js"
+ DestinationFiles="$(ScriptTempPath)\jquery.signalR-$(JsVersion).js" />
+ <Copy SourceFiles="$(ProjectRoot)\SignalR.Client.JS\bin\jquery.signalR.min.js"
+ DestinationFiles="$(ScriptTempPath)\jquery.signalR-$(JsVersion).min.js" />
<Exec Command="&quot;$(NuGetExePath)&quot; pack &quot;%(JsPackage.Identity)&quot; -o &quot;$(ArtifactsDir)&quot; -p Version=$(PackageVersion) -basePath &quot;$(ScriptTempPath)&quot;"
LogStandardErrorAsError="true" />
View
2 build-packages.cmd
@@ -3,4 +3,4 @@ set version=%1
if "%version%" == "" (
set version=1
)
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\Build.proj /t:Go;BuildPackages /p:Configuration=Release;BUILD_NUMBER=%version% /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\Build.proj /t:Go;BuildPackages;BuildDocs /p:Configuration=Release;BUILD_NUMBER=%version% /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

0 comments on commit 7f905c6

Please sign in to comment.