-
Notifications
You must be signed in to change notification settings - Fork 29
/
Rakefile
37 lines (27 loc) · 850 Bytes
/
Rakefile
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
29
30
31
32
33
34
35
36
37
require 'bundler/setup'
require 'albacore'
require 'albacore/tasks/versionizer'
Albacore::Tasks::Versionizer.new :versioning
task :default => :build
desc 'build project'
build :build do |b|
b.sln = "etcetera.sln"
end
desc 'Perform full build'
build :build => [:versioning, :restore] do |b|
b.sln = 'etcetera.sln'
end
desc 'restore all nugets as per the packages.config files'
nugets_restore :restore do |p|
p.out = 'packages'
p.exe = '.nuget/NuGet.exe'
end
FileUtils.mkdir_p 'build/pkg/lib/net40'
desc 'package nugets - finds all projects and package them'
task :nuget do
cp 'etcetera/bin/Release/etcetera.dll', 'build/pkg/lib/net40'
sh '.nuget/nuget.exe pack etcetera.nuspec -BasePath build/pkg -Output build'
end
task :release do
sh '.nuget/nuget.exe push build/etcetera.0.5.0.nupkg'
end