Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
831ab0a
commit 7c742f9
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
namespace :ripple do | ||
desc "Restores nuget package files" | ||
task :restore do | ||
puts 'Restoring all the nuget package files' | ||
sh 'ripple restore' | ||
end | ||
|
||
desc "Updates nuget package files to the latest" | ||
task :update do | ||
puts 'Updating all the nuget package files' | ||
sh 'ripple update' | ||
end | ||
|
||
desc "creates a history file for nuget dependencies" | ||
task :history do | ||
sh 'ripple history' | ||
end | ||
|
||
desc "publishes all the nuget's published by this solution" | ||
task :publish do | ||
nuget_api_key = ENV['apikey'] | ||
server = ENV['server'] | ||
cmd = "ripple publish #{BUILD_NUMBER} #{nuget_api_key}" | ||
cmd = cmd + " --server #{server}" unless server.nil? | ||
sh cmd | ||
end | ||
|
||
desc "packages the nuget files from the nuspec files in packaging/nuget and publishes to /artifacts" | ||
task :package => [:history] do | ||
sh "ripple local-nuget --version #{BUILD_NUMBER} --destination artifacts" | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters