forked from phoenixwebgroup/DotNetMongoMigrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile.rb
More file actions
28 lines (23 loc) · 711 Bytes
/
Rakefile.rb
File metadata and controls
28 lines (23 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rake'
require 'albacore'
$projectSolution = 'src/MongoMigrations.sln'
$artifactsPath = "build"
$nugetFeedPath = ENV["NuGetDevFeed"]
$srcPath = File.expand_path('src')
task :build => [:build_release]
msbuild :build_release => [:clean] do |msb|
msb.properties :configuration => :Release
msb.targets :Build
msb.solution = $projectSolution
end
task :clean do
puts "Cleaning"
FileUtils.rm_rf $artifactsPath
bins = FileList[File.join($srcPath, "**/bin")].map{|f| File.expand_path(f)}
bins.each do |file|
sh %Q{rmdir /S /Q "#{file}"}
end
end
task :nuget => [:build] do
sh "src\\.nuget\\nuget pack src\\MongoMigrations\\MongoMigrations.csproj /OutputDirectory " + $nugetFeedPath
end