iron_hammer 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/iron_hammer/hammer.rb +4 -1
- data/lib/iron_hammer/tasks.rb +11 -5
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/iron_hammer/hammer.rb
CHANGED
@@ -31,7 +31,10 @@ module IronHammer
|
|
31
31
|
def test *projects
|
32
32
|
return if projects.nil? || projects.empty?
|
33
33
|
parent_dir = File.join(projects.first.path || '.', '..')
|
34
|
-
|
34
|
+
config = ['LocalTestRun', 'TestRunConfig'].find do |config_name|
|
35
|
+
File.exists?(File.join(parent_dir, "#{config_name}.testrunconfig"))
|
36
|
+
end
|
37
|
+
runconfig = "/runconfig:#{config}.testrunconfig " if config
|
35
38
|
containers = projects.collect{|project| "/testcontainer:#{project.container @configuration}"}
|
36
39
|
results = projects.first.results_file
|
37
40
|
mstest = @dot_net_environment.mstest
|
data/lib/iron_hammer/tasks.rb
CHANGED
@@ -45,18 +45,24 @@ namespace :iron do
|
|
45
45
|
task :setup, [:binaries_path] do |t, args|
|
46
46
|
@anvil.projects.each do |project|
|
47
47
|
project.dependencies.each do |dependency|
|
48
|
-
|
48
|
+
|
49
|
+
sh "java -jar #{IVY_JAR} -settings #{IVY_SETTINGS} -dependency #{ORGANISATION} #{dependency.name} #{dependency.version}" do |ok, res|
|
50
|
+
if !ok
|
51
|
+
dependency_project = DependencyProject.new(
|
49
52
|
:name => dependency.name,
|
50
53
|
:binaries_path => args.binaries_path,
|
51
54
|
:version => dependency.version)
|
52
55
|
|
53
|
-
|
56
|
+
puts "Dependency #{dependency.name}"
|
57
|
+
|
58
|
+
builder = IvyBuilder.new dependency_project
|
54
59
|
|
55
|
-
|
60
|
+
builder.write_to "ivy-#{dependency.name}.xml"
|
56
61
|
|
57
|
-
|
62
|
+
sh builder.publish "ivy-#{dependency.name}.xml"
|
63
|
+
end
|
64
|
+
end
|
58
65
|
|
59
|
-
sh builder.publish "ivy-#{dependency.name}.xml"
|
60
66
|
end
|
61
67
|
end
|
62
68
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_hammer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mozair Alves do Carmo Junior
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-03 00:00:00 -02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|