Permalink
Browse files

Preparing for CI

  • Loading branch information...
1 parent 7ea32f7 commit 5acf3a9e6c64d197983020693685c5da5acc584d @ayende committed Sep 10, 2009
Showing with 18 additions and 1 deletion.
  1. +18 −1 default.ps1
View
@@ -5,8 +5,11 @@ properties {
$buildartifacts_dir = "$build_dir\"
$sln_file = "$base_dir\Rhino.DistributedHashTable.sln"
$version = "1.7.0.0"
+ $humanReadableversion = "1.7"
$tools_dir = "$base_dir\Tools"
$release_dir = "$base_dir\Release"
+ $uploadCategory = "Rhino-DHT"
+ $uploadScript = "C:\Builds\Upload\PublishBuild.build"
}
include .\psake_ext.ps1
@@ -84,7 +87,7 @@ task Test -depends Compile {
task Release -depends Test {
& $tools_dir\zip.exe -9 -A -j `
- $release_dir\Rhino.DistributedHashTable.zip `
+ $release_dir\Rhino.DistributedHashTable-$humanReadableversion-Build-$env:ccnetnumericlabel.zip `
$build_dir\Rhino.DistributedHashTable.dll `
$build_dir\Rhino.DistributedHashTable.xml `
$build_dir\Esent.Interop.dll `
@@ -104,4 +107,18 @@ task Release -depends Test {
if ($lastExitCode -ne 0) {
throw "Error: Failed to execute ZIP command"
}
+}
+
+task Upload -depend Release {
+ if (Test-Path $uploadScript ) {
+ $log = git log -n 1 --oneline
+ msbuild $uploadScript /p:Category=$uploadCategory "/p:Comment=$log" "/p:File=$release_dir\Rhino.DistributedHashTable-$humanReadableversion-Build-$env:ccnetnumericlabel.zip"
+
+ if ($lastExitCode -ne 0) {
+ throw "Error: Failed to publish build"
+ }
+ }
+ else {
+ Write-Host "could not find upload script $uploadScript, skipping upload"
+ }
}

0 comments on commit 5acf3a9

Please sign in to comment.