forked from machine/machine.specifications.reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile.rb
35 lines (30 loc) · 988 Bytes
/
rakefile.rb
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
begin
require 'bundler/setup'
require 'albacore'
require 'configatron'
require 'fileutils'
require './quicktemplate.rb'
require './rakefile.include.rb'
rescue LoadError
puts 'Bundler and all the gems need to be installed prior to running this rake script. Installing...'
system("gem install bundler --source http://rubygems.org")
sh 'bundle install'
system("bundle exec rake", *ARGV)
exit 0
end
task :rebuild => [ :clean, :configure, :restore, :build ]
task :default => [ :rebuild ]
desc "Package build artifacts as a NuGet package and a symbols package"
task(:createpackage).clear
task :createpackage => [ :default ] do
nuspecs = FileList.new('**/*.nuspec')
nuspecs.exclude(/packages/)
nuspecs.each do |nuspec|
opts = %W(
nuget pack #{nuspec} -Symbols -Version #{configatron.version.full} -OutputDirectory #{configatron.distribution.dir}
)
sh(*opts) do |ok, status|
ok or fail "Command failed with status (#{status.exitstatus})"
end
end
end