buildr-hx 0.0.19.pre → 0.0.20.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/buildr-hx.gemspec +2 -2
- data/buildr-hx.iml +29 -0
- data/lib/buildr/hx/test/munit.rb +21 -12
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.20.pre
|
data/buildr-hx.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "buildr-hx"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.20.pre"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dominic Graefen"]
|
12
|
-
s.date = "2012-04-
|
12
|
+
s.date = "2012-04-11"
|
13
13
|
s.description = "Build like you code - now supporting haXe"
|
14
14
|
s.email = "dominic @nospam@ devboy.org"
|
15
15
|
s.extra_rdoc_files = [
|
data/buildr-hx.iml
CHANGED
@@ -8,6 +8,35 @@
|
|
8
8
|
</content>
|
9
9
|
<orderEntry type="jdk" jdkName="ruby-1.9.2-p290" jdkType="RUBY_SDK" />
|
10
10
|
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="atoulme-Antwrap (v0.7.1, ruby-1.9.2-p290) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v2.1.2, ruby-1.9.2-p290) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="buildr (v1.4.6, ruby-1.9.2-p290) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="buildr-hx (v0.0.19.pre, ruby-1.9.2-p290) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, ruby-1.9.2-p290) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.2, ruby-1.9.2-p290) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="git (v1.2.5, ruby-1.9.2-p290) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="highline (v1.5.1, ruby-1.9.2-p290) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="hoe (v2.3.3, ruby-1.9.2-p290) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="jeweler (v1.8.3, ruby-1.9.2-p290) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="json_pure (v1.4.3, ruby-1.9.2-p290) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="minitar (v0.5.3, ruby-1.9.2-p290) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.2.0, ruby-1.9.2-p290) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.0.4, ruby-1.9.2-p290) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.0.23, ruby-1.9.2-p290) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.8.7, ruby-1.9.2-p290) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, ruby-1.9.2-p290) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="rjb (v1.3.3, ruby-1.9.2-p290) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.3.1, ruby-1.9.2-p290) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.1.0, ruby-1.9.2-p290) [gem]" level="application" />
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="rubyforge (v2.0.3, ruby-1.9.2-p290) [gem]" level="application" />
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.4, ruby-1.9.2-p290) [gem]" level="application" />
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.6.1, ruby-1.9.2-p290) [gem]" level="application" />
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.5.3, ruby-1.9.2-p290) [gem]" level="application" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-rcov (v0.2.3, ruby-1.9.2-p290) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.0.12, ruby-1.9.2-p290) [gem]" level="application" />
|
11
40
|
</component>
|
12
41
|
</module>
|
13
42
|
|
data/lib/buildr/hx/test/munit.rb
CHANGED
@@ -10,11 +10,20 @@ module Buildr
|
|
10
10
|
|
11
11
|
DEFAULT_VERSION = "0.9.2.1"
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
def initialize(test_task, options)
|
14
|
+
super
|
15
|
+
generate = Rake::Task.define_task(:generate_files) do
|
16
|
+
create_munit_config
|
17
|
+
appwd = Dir.pwd
|
18
|
+
Dir.chdir task.project.base_dir
|
19
|
+
cmd = "haxelib run munit gen"
|
20
|
+
fail "Problems...oh noes!" unless system cmd
|
21
|
+
Dir.chdir appwd
|
22
|
+
end
|
23
|
+
@task.compile.enhance [:generate_files] do
|
24
|
+
generate.reenable
|
25
|
+
end
|
26
|
+
end
|
18
27
|
|
19
28
|
def tests(dependencies) #:nodoc:
|
20
29
|
candidates = []
|
@@ -47,7 +56,7 @@ module Buildr
|
|
47
56
|
|
48
57
|
Dir.chdir appwd
|
49
58
|
|
50
|
-
Dir[File.join(task.project.path_to(:reports, :munit),"**/TEST-*.xml")].each do |xml_report|
|
59
|
+
Dir[File.join(task.project.path_to(:reports, :munit), "**/TEST-*.xml")].each do |xml_report|
|
51
60
|
doc = REXML::Document.new File.new(xml_report)
|
52
61
|
name = doc.elements["testsuite"].attributes["name"]
|
53
62
|
failures = Integer(doc.elements["testsuite"].attributes["failures"])
|
@@ -63,12 +72,12 @@ module Buildr
|
|
63
72
|
file = File.join(task.project.base_dir, ".munit")
|
64
73
|
puts "Creating munit config '#{file}'"
|
65
74
|
File.open(file, 'w') { |f| f.write(
|
66
|
-
"version=#{options[:version].nil? ? DEFAULT_VERSION : options[:version]}
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
75
|
+
"version=#{options[:version].nil? ? DEFAULT_VERSION : options[:version]}\n" +
|
76
|
+
"src=#{task.project.path_to(:source, :test, :hx)}\n" +
|
77
|
+
"bin=#{task.project.test.compile.target}\n" +
|
78
|
+
"report=#{task.project.path_to(:reports, :munit)}\n" +
|
79
|
+
"hxml=#{get_hxml_file}\n" +
|
80
|
+
"classPaths=#{task.project.compile.sources.map(&:to_s).join(',')}"
|
72
81
|
) }
|
73
82
|
end
|
74
83
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-hx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20.pre
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: buildr
|
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
segments:
|
215
215
|
- 0
|
216
|
-
hash: -
|
216
|
+
hash: -1754110536072122068
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
219
219
|
requirements:
|