forked from northwoodspd/UIA.Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (25 loc) · 748 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
require 'bundler/setup'
require 'rubygems'
require 'albacore'
require 'rspec/core/rake_task'
require 'rspec/given'
task :default => [:build, :spec]
desc 'Build UIA.Extensions'
build :build do |b|
b.sln = 'src/UIA.Extensions.sln'
b.prop :Configuration, :Debug
end
desc 'Build the Release UIA.Extensions'
build :build_release do |b|
b.sln = 'src/UIA.Extensions.sln'
b.prop :Configuration, :Release
end
desc 'Package for NuGet'
task :package => [:build, :spec, :build_release] do
puts `nuget pack src/UIA.Extensions/UIA.Extensions.csproj -Prop Configuration=Release`
end
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.ruby_opts = "-I lib:spec"
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = "--color -f documentation"
end