Skip to content

Commit

Permalink
Vendor nuget for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
statianzo committed Apr 4, 2012
1 parent b24484d commit d63283e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ task :nuget => ['nuget:pack', 'nuget:push']
namespace :nuget do
desc 'Create a nuget package'
task :pack do
sh "nuget pack -OutputDirectory #{ARCHIVE_DIR} -Properties Configuration=#{COMPILE_TARGET} src/#{ROOT_NAMESPACE}/#{ROOT_NAMESPACE}.csproj"
sh "support/nuget pack -OutputDirectory #{ARCHIVE_DIR} -Properties Configuration=#{COMPILE_TARGET} src/#{ROOT_NAMESPACE}/#{ROOT_NAMESPACE}.csproj"
end

desc 'Publish the nuget package'
task :push do
basename = "#{ROOT_NAMESPACE}.#{BUILD_VERSION}.nupkg"
sh "nuget push #{File.join(ARCHIVE_DIR,basename)} #{ENV['NUGET_KEY']}"
sh "support/nuget push #{File.join(ARCHIVE_DIR,basename)} #{ENV['NUGET_KEY']}"
end
end

Expand Down
Binary file added support/NuGet.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions support/nuget
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

FILEDIR="$( cd "$( dirname "$0" )" && pwd )"
exec mono --runtime=4.0.30319.17020 "$FILEDIR/NuGet.exe" "$@"

0 comments on commit d63283e

Please sign in to comment.