-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathconfiguration.rb
More file actions
executable file
·41 lines (37 loc) · 1.18 KB
/
Copy pathconfiguration.rb
File metadata and controls
executable file
·41 lines (37 loc) · 1.18 KB
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
38
39
40
task :configure do
project = "developwithpassion.specifications"
target = ENV['target'] || 'Debug'
configs =
{
:project => project,
:target => target,
:source_dir => "source",
:artifacts_dir => "artifacts",
:version => delayed{ENV['VERSION']},
:version_simple => delayed{configatron.version.gsub(/"/,'')},
:config_dir => delayed{configatron.source_dir.join("config")},
:specs =>
{
:runner_options => ["-x","example"],
:tools_folder => delayed{File.join("packages","Machine.Specifications.0.5.16","tools")},
:dir => delayed{configatron.artifacts_dir.join('specs')},
:report_dir => delayed{configatron.specs.dir.join('report')},
:assemblies => dynamic{Dir.glob("#{configatron.artifacts_dir}/*specs.dll")},
},
:distribution =>
{
:dir => "distribution",
:zip =>
{
:dir => delayed{configatron.distribution.dir.join("zips")},
},
:nuget =>
{
:dir => delayed{configatron.distribution.dir.join("nuget")},
:key => dynamic{File.read('nuget_key') if File.readable?('nuget_key')}
}
}
}
configatron.configure_from_hash configs
configatron.protect_all!
end