albacore 0.2.0.preview1 → 0.2.0.preview2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +7 -2
- data/VERSION +1 -1
- data/install_dependencies.rb +1 -1
- data/lib/albacore.rb +6 -17
- data/lib/albacore/albacoretask.rb +43 -0
- data/lib/albacore/assemblyinfo.rb +10 -7
- data/lib/albacore/config/assemblyinfoconfig.rb +4 -12
- data/lib/albacore/config/config.rb +16 -8
- data/lib/albacore/config/cscconfig.rb +2 -7
- data/lib/albacore/config/docuconfig.rb +3 -5
- data/lib/albacore/config/execconfig.rb +4 -11
- data/lib/albacore/config/msbuildconfig.rb +2 -5
- data/lib/albacore/config/mspectestrunnerconfig.rb +15 -0
- data/lib/albacore/config/nantconfig.rb +4 -11
- data/lib/albacore/config/ncoverconsoleconfig.rb +4 -11
- data/lib/albacore/config/ncoverreportconfig.rb +4 -11
- data/lib/albacore/config/ndependconfig.rb +4 -11
- data/lib/albacore/config/netversion.rb +0 -2
- data/lib/albacore/config/nunittestrunnerconfig.rb +14 -0
- data/lib/albacore/config/specflowreportconfig.rb +2 -5
- data/lib/albacore/config/sqlcmdconfig.rb +4 -11
- data/lib/albacore/config/unzipconfig.rb +4 -11
- data/lib/albacore/config/xbuildconfig.rb +4 -11
- data/lib/albacore/config/xunittestrunnerconfig.rb +15 -0
- data/lib/albacore/config/zipdirectoryconfig.rb +15 -0
- data/lib/albacore/csc.rb +31 -5
- data/lib/albacore/docu.rb +2 -3
- data/lib/albacore/exec.rb +3 -5
- data/lib/albacore/msbuild.rb +3 -3
- data/lib/albacore/mspectestrunner.rb +5 -6
- data/lib/albacore/nant.rb +4 -6
- data/lib/albacore/ncoverconsole.rb +4 -6
- data/lib/albacore/ncoverreport.rb +4 -6
- data/lib/albacore/ncoverreports/codecoveragebase.rb +2 -2
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +2 -2
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +0 -8
- data/lib/albacore/ncoverreports/reportfilterbase.rb +2 -2
- data/lib/albacore/ncoverreports/summaryreport.rb +0 -4
- data/lib/albacore/ndepend.rb +4 -6
- data/lib/albacore/nunittestrunner.rb +4 -5
- data/lib/albacore/specflowreport.rb +2 -2
- data/lib/albacore/sqlcmd.rb +33 -11
- data/lib/albacore/support/createtask.rb +30 -0
- data/lib/albacore/support/runcommand.rb +21 -30
- data/lib/albacore/support/updateattributes.rb +13 -0
- data/lib/albacore/unzip.rb +3 -5
- data/lib/albacore/xbuild.rb +5 -6
- data/lib/albacore/xunittestrunner.rb +4 -5
- data/lib/albacore/zipdirectory.rb +5 -6
- data/rakefile.rb +7 -8
- data/spec/albacoremodel_spec.rb +20 -2
- data/spec/assemblyinfo_spec.rb +27 -14
- data/spec/config_spec.rb +17 -2
- data/spec/createtask_spec.rb +51 -28
- data/spec/csc_spec.rb +135 -3
- data/spec/docu_spec.rb +11 -14
- data/spec/exec_spec.rb +1 -1
- data/spec/msbuild_spec.rb +9 -9
- data/spec/nant_spec.rb +4 -4
- data/spec/ncoverconsole_spec.rb +13 -13
- data/spec/ncoverreport_spec.rb +17 -17
- data/spec/ndepend_spec.rb +6 -6
- data/spec/runcommand_spec.rb +22 -3
- data/spec/sqlcmd_spec.rb +154 -12
- data/spec/support/assemblyinfotester.rb +1 -1
- data/spec/support/spec_helper.rb +2 -2
- data/spec/yamlconfig_spec.rb +3 -3
- data/spec/zip_spec.rb +4 -4
- metadata +32 -119
- data/lib/albacore/albacoremodel.rb +0 -28
- data/lib/albacore/config/mspecconfig.rb +0 -21
- data/lib/albacore/config/nunitconfig.rb +0 -20
- data/lib/albacore/config/xunitconfig.rb +0 -22
- data/lib/albacore/config/zipconfig.rb +0 -22
- data/lib/rake/assemblyinfotask.rb +0 -3
- data/lib/rake/csctask.rb +0 -3
- data/lib/rake/docutask.rb +0 -3
- data/lib/rake/exectask.rb +0 -3
- data/lib/rake/msbuildtask.rb +0 -3
- data/lib/rake/mspectask.rb +0 -3
- data/lib/rake/nanttask.rb +0 -3
- data/lib/rake/ncoverconsoletask.rb +0 -3
- data/lib/rake/ncoverreporttask.rb +0 -3
- data/lib/rake/ndependtask.rb +0 -3
- data/lib/rake/nunittask.rb +0 -3
- data/lib/rake/specflowreporttask.rb +0 -3
- data/lib/rake/sqlcmdtask.rb +0 -3
- data/lib/rake/support/albacoretask.rb +0 -30
- data/lib/rake/support/createtask.rb +0 -21
- data/lib/rake/unziptask.rb +0 -3
- data/lib/rake/xbuildtask.rb +0 -7
- data/lib/rake/xunittask.rb +0 -3
- data/lib/rake/ziptask.rb +0 -3
- data/spec/assemblyinfotask_spec.rb +0 -32
- data/spec/csctask_spec.rb +0 -1
- data/spec/docutask_spec.rb +0 -52
- data/spec/exectask_spec.rb +0 -46
- data/spec/msbuildtask_spec.rb +0 -46
- data/spec/mspectask_spec.rb +0 -46
- data/spec/nanttask_spec.rb +0 -46
- data/spec/ncoverconsoletask_spec.rb +0 -46
- data/spec/ncoverreporttask_spec.rb +0 -46
- data/spec/ndependtask_spec.rb +0 -46
- data/spec/nunittask_spec.rb +0 -46
- data/spec/spec.opts +0 -1
- data/spec/specflowreporttask_spec.rb +0 -48
- data/spec/sqlcmdtask_spec.rb +0 -32
- data/spec/support/AssemblyInfo/assemblyinfo.yml +0 -2
- data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.NUnit.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/TestSolution.FailingTests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/report/coverage.xml +0 -4578
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.xml +0 -2306
- data/spec/support/SpecFlow/TechTalk.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.pdb +0 -0
- data/spec/support/SpecFlow/TestSolution.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.pdb +0 -0
- data/spec/support/SpecFlow/nunit.framework.dll +0 -0
- data/spec/support/TestSolution/NDependProject.xml +0 -315
- data/spec/support/TestSolution/TestSolution.5.0.ReSharper.user +0 -27
- data/spec/support/TestSolution/TestSolution.FailingTests/FailingTestFixture.cs +0 -19
- data/spec/support/TestSolution/TestSolution.FailingTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.FailingTests/TestSolution.FailingTests.csproj +0 -63
- data/spec/support/TestSolution/TestSolution.MSpecTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.MSpecTests/SomeSpecTest.cs +0 -18
- data/spec/support/TestSolution/TestSolution.MSpecTests/TestSolution.MSpecTests.csproj +0 -77
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature +0 -8
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature.cs +0 -73
- data/spec/support/TestSolution/TestSolution.SpecFlow/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs +0 -30
- data/spec/support/TestSolution/TestSolution.SpecFlow/TestSolution.SpecFlow.csproj +0 -84
- data/spec/support/TestSolution/TestSolution.Tests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.Tests/SomeTestFixture.cs +0 -23
- data/spec/support/TestSolution/TestSolution.Tests/TestSolution.Tests.csproj +0 -69
- data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +0 -19
- data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +0 -14
- data/spec/support/TestSolution/TestSolution.XUnitTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +0 -70
- data/spec/support/TestSolution/TestSolution.build +0 -25
- data/spec/support/TestSolution/TestSolution.sln +0 -50
- data/spec/support/TestSolution/TestSolution/Class1.cs +0 -17
- data/spec/support/TestSolution/TestSolution/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution/TestSolution.csproj +0 -59
- data/spec/support/csc/File1.cs +0 -9
- data/spec/support/csc/File2.cs +0 -9
- data/spec/support/csc/output/ignorethis.txt +0 -1
- data/spec/support/test.yml +0 -4
- data/spec/support/yamlconfig/msbuild.yml +0 -5
- data/spec/support/yamlconfig/yaml_autoconfig_test.yml +0 -1
- data/spec/support/zip/files/subfolder/sub file.txt +0 -1
- data/spec/support/zip/files/testfile.txt +0 -1
- data/spec/xunittask_spec.rb +0 -32
- data/spec/ziptask_spec.rb +0 -33
@@ -3,10 +3,10 @@ require 'albacore/support/openstruct'
|
|
3
3
|
|
4
4
|
module Configuration
|
5
5
|
module SpecFlowReport
|
6
|
-
|
6
|
+
include Albacore::Configuration
|
7
7
|
|
8
8
|
def self.specflowreportconfig
|
9
|
-
@specflowreportconfig
|
9
|
+
@specflowreportconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
10
|
end
|
11
11
|
|
12
12
|
def specflowreport
|
@@ -22,6 +22,3 @@ module Configuration
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
class Albacore::Configuration
|
26
|
-
include Configuration::SpecFlowReport
|
27
|
-
end
|
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
|
|
3
3
|
|
4
4
|
module Configuration
|
5
5
|
module SQLCmd
|
6
|
-
|
7
|
-
|
8
|
-
def self.sqlcmdconfig
|
9
|
-
@sqlcmdconfig
|
10
|
-
end
|
6
|
+
include Albacore::Configuration
|
11
7
|
|
12
8
|
def sqlcmd
|
13
|
-
|
14
|
-
yield(
|
15
|
-
|
9
|
+
@sqlcmdconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@sqlcmdconfig) if block_given?
|
11
|
+
@sqlcmdconfig
|
16
12
|
end
|
17
13
|
end
|
18
14
|
end
|
19
15
|
|
20
|
-
class Albacore::Configuration
|
21
|
-
include Configuration::SQLCmd
|
22
|
-
end
|
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
|
|
3
3
|
|
4
4
|
module Configuration
|
5
5
|
module Unzip
|
6
|
-
|
7
|
-
|
8
|
-
def self.unzipconfig
|
9
|
-
@unzipconfig
|
10
|
-
end
|
6
|
+
include Albacore::Configuration
|
11
7
|
|
12
8
|
def unzip
|
13
|
-
|
14
|
-
yield(
|
15
|
-
|
9
|
+
@unzipconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@unzipconfig) if block_given?
|
11
|
+
@unzipconfig
|
16
12
|
end
|
17
13
|
end
|
18
14
|
end
|
19
15
|
|
20
|
-
class Albacore::Configuration
|
21
|
-
include Configuration::Unzip
|
22
|
-
end
|
@@ -3,20 +3,13 @@ require 'albacore/support/openstruct'
|
|
3
3
|
|
4
4
|
module Configuration
|
5
5
|
module XBuild
|
6
|
-
|
7
|
-
|
8
|
-
def self.xbuildconfig
|
9
|
-
@xbuildconfig
|
10
|
-
end
|
6
|
+
include Albacore::Configuration
|
11
7
|
|
12
8
|
def xbuild
|
13
|
-
|
14
|
-
yield(
|
15
|
-
|
9
|
+
@xbuildconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@xbuildconfig) if block_given?
|
11
|
+
@xbuildconfig
|
16
12
|
end
|
17
13
|
end
|
18
14
|
end
|
19
15
|
|
20
|
-
class Albacore::Configuration
|
21
|
-
include Configuration::XBuild
|
22
|
-
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module XUnit
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def xunit
|
9
|
+
@xunitconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@xunitconfig) if block_given?
|
11
|
+
@xunitconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module Zip
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def zip
|
9
|
+
@zipconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@zipconfig) if block_given?
|
11
|
+
@zipconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
data/lib/albacore/csc.rb
CHANGED
@@ -1,26 +1,32 @@
|
|
1
|
-
require 'albacore/
|
1
|
+
require 'albacore/albacoretask'
|
2
2
|
require 'albacore/config/cscconfig'
|
3
3
|
require 'albacore/support/supportlinux'
|
4
4
|
|
5
5
|
class CSC
|
6
|
-
include
|
6
|
+
include AlbacoreTask
|
7
7
|
include RunCommand
|
8
8
|
include Configuration::CSC
|
9
9
|
include SupportsLinuxEnvironment
|
10
10
|
|
11
|
-
attr_accessor :output, :target
|
12
|
-
attr_array :compile, :references
|
11
|
+
attr_accessor :output, :target, :optimize, :debug, :doc
|
12
|
+
attr_array :compile, :references, :resources, :define
|
13
13
|
|
14
14
|
def initialize
|
15
|
+
@optimize = false
|
15
16
|
super()
|
16
17
|
update_attributes csc.to_hash
|
17
18
|
end
|
18
19
|
|
19
20
|
def execute
|
20
21
|
params = []
|
22
|
+
params << @references.map{|r| format_reference(r)} unless @references.nil?
|
23
|
+
params << @resources.map{|r| format_resource(r)} unless @resources.nil?
|
21
24
|
params << "\"/out:#{@output}\"" unless @output.nil?
|
22
25
|
params << "/target:#{@target}" unless @target.nil?
|
23
|
-
params <<
|
26
|
+
params << "/optimize+" if @optimize
|
27
|
+
params << get_debug_param unless @debug.nil?
|
28
|
+
params << "/doc:#{@doc}" unless @doc.nil?
|
29
|
+
params << get_define_params unless @define.nil?
|
24
30
|
params << @compile.map{|f| format_path(f)} unless @compile.nil?
|
25
31
|
|
26
32
|
result = run_command "CSC", params
|
@@ -28,4 +34,24 @@ class CSC
|
|
28
34
|
failure_message = 'CSC Failed. See Build Log For Detail'
|
29
35
|
fail_with_message failure_message if !result
|
30
36
|
end
|
37
|
+
|
38
|
+
def get_define_params
|
39
|
+
symbols = @define.join(";")
|
40
|
+
"/define:#{symbols}"
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_debug_param
|
44
|
+
case @debug
|
45
|
+
when true
|
46
|
+
"/debug"
|
47
|
+
when :full
|
48
|
+
"/debug:full"
|
49
|
+
when :pdbonly
|
50
|
+
"/debug:pdbonly"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def format_resource(resource)
|
55
|
+
"/res:#{resource}"
|
56
|
+
end
|
31
57
|
end
|
data/lib/albacore/docu.rb
CHANGED
data/lib/albacore/exec.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
require 'albacore/
|
2
|
-
require 'albacore/config/execconfig'
|
1
|
+
require 'albacore/albacoretask'
|
3
2
|
|
4
3
|
class Exec
|
5
|
-
include
|
4
|
+
include AlbacoreTask
|
6
5
|
include RunCommand
|
7
|
-
include Configuration::Exec
|
8
6
|
|
9
7
|
def initialize
|
10
8
|
super()
|
11
|
-
update_attributes exec.to_hash
|
9
|
+
update_attributes Albacore.configuration.exec.to_hash
|
12
10
|
end
|
13
11
|
|
14
12
|
def execute
|
data/lib/albacore/msbuild.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require 'albacore/
|
1
|
+
require 'albacore/albacoretask'
|
2
2
|
require 'albacore/config/msbuildconfig.rb'
|
3
3
|
|
4
4
|
class MSBuild
|
5
|
-
include
|
5
|
+
include AlbacoreTask
|
6
6
|
include RunCommand
|
7
7
|
include Configuration::MSBuild
|
8
8
|
|
@@ -15,7 +15,7 @@ class MSBuild
|
|
15
15
|
update_attributes msbuild.to_hash
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def execute
|
19
19
|
build_solution(@solution)
|
20
20
|
end
|
21
21
|
|
@@ -1,10 +1,9 @@
|
|
1
|
-
require 'albacore/
|
2
|
-
require 'albacore/config/mspecconfig'
|
1
|
+
require 'albacore/albacoretask'
|
3
2
|
|
4
3
|
class MSpecTestRunner
|
5
|
-
|
4
|
+
TaskName = :mspec
|
5
|
+
include AlbacoreTask
|
6
6
|
include RunCommand
|
7
|
-
include Configuration::MSpec
|
8
7
|
|
9
8
|
attr_accessor :html_output
|
10
9
|
attr_array :assemblies, :options
|
@@ -12,7 +11,7 @@ class MSpecTestRunner
|
|
12
11
|
def initialize(command=nil)
|
13
12
|
@assemblies=[]
|
14
13
|
super()
|
15
|
-
update_attributes mspec.to_hash
|
14
|
+
update_attributes Albacore.configuration.mspec.to_hash
|
16
15
|
@command = command unless command.nil?
|
17
16
|
end
|
18
17
|
|
@@ -22,7 +21,7 @@ class MSpecTestRunner
|
|
22
21
|
command << get_command_parameters
|
23
22
|
cmd = command.join(" ")
|
24
23
|
@logger.debug "Build MSpec Test Runner Command Line: " + cmd
|
25
|
-
|
24
|
+
return cmd
|
26
25
|
end
|
27
26
|
|
28
27
|
def get_command_parameters
|
data/lib/albacore/nant.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
require 'albacore/
|
2
|
-
require 'albacore/config/nantconfig'
|
1
|
+
require 'albacore/albacoretask'
|
3
2
|
|
4
3
|
class NAnt
|
5
|
-
include
|
4
|
+
include AlbacoreTask
|
6
5
|
include RunCommand
|
7
|
-
include Configuration::NAnt
|
8
6
|
|
9
7
|
attr_accessor :build_file
|
10
8
|
attr_array :targets
|
@@ -12,10 +10,10 @@ class NAnt
|
|
12
10
|
|
13
11
|
def initialize
|
14
12
|
super()
|
15
|
-
update_attributes nant.to_hash
|
13
|
+
update_attributes Albacore.configuration.nant.to_hash
|
16
14
|
end
|
17
15
|
|
18
|
-
def
|
16
|
+
def execute
|
19
17
|
command_parameters = []
|
20
18
|
command_parameters << "-buildfile:#{@build_file}" unless @build_file.nil?
|
21
19
|
command_parameters << "#{build_properties}" unless @properties.nil?
|
@@ -1,10 +1,8 @@
|
|
1
|
-
require 'albacore/
|
2
|
-
require 'albacore/config/ncoverconsoleconfig'
|
1
|
+
require 'albacore/albacoretask'
|
3
2
|
|
4
3
|
class NCoverConsole
|
5
|
-
include
|
4
|
+
include AlbacoreTask
|
6
5
|
include RunCommand
|
7
|
-
include Configuration::NCoverConsole
|
8
6
|
|
9
7
|
attr_accessor :testrunner
|
10
8
|
attr_array :cover_assemblies, :exclude_assemblies, :coverage, :exclude_attributes
|
@@ -18,14 +16,14 @@ class NCoverConsole
|
|
18
16
|
@exclude_attributes = []
|
19
17
|
@coverage = []
|
20
18
|
super()
|
21
|
-
update_attributes ncoverconsole.to_hash
|
19
|
+
update_attributes Albacore.configuration.ncoverconsole.to_hash
|
22
20
|
end
|
23
21
|
|
24
22
|
def no_registration
|
25
23
|
@register_dll = false
|
26
24
|
end
|
27
25
|
|
28
|
-
def
|
26
|
+
def execute
|
29
27
|
return unless check_for_testrunner
|
30
28
|
|
31
29
|
command_parameters = []
|
@@ -1,11 +1,9 @@
|
|
1
1
|
Dir.glob(File.join(File.expand_path(File.dirname(__FILE__)), 'ncoverreports/*.rb')).each {|f| require f }
|
2
|
-
require 'albacore/
|
3
|
-
require 'albacore/config/ncoverreportconfig'
|
2
|
+
require 'albacore/albacoretask'
|
4
3
|
|
5
4
|
class NCoverReport
|
6
|
-
include
|
5
|
+
include AlbacoreTask
|
7
6
|
include RunCommand
|
8
|
-
include Configuration::NCoverReport
|
9
7
|
|
10
8
|
attr_array :coverage_files, :reports, :required_coverage, :filters
|
11
9
|
|
@@ -15,10 +13,10 @@ class NCoverReport
|
|
15
13
|
@required_coverage = []
|
16
14
|
@filters = []
|
17
15
|
super()
|
18
|
-
update_attributes ncoverreport.to_hash
|
16
|
+
update_attributes Albacore.configuration.ncoverreport.to_hash
|
19
17
|
end
|
20
18
|
|
21
|
-
def
|
19
|
+
def execute
|
22
20
|
return unless check_command
|
23
21
|
|
24
22
|
command_parameters = []
|
data/lib/albacore/ndepend.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
require 'albacore/
|
2
|
-
require 'albacore/config/ndependconfig'
|
1
|
+
require 'albacore/albacoretask'
|
3
2
|
|
4
3
|
class NDepend
|
5
|
-
include
|
4
|
+
include AlbacoreTask
|
6
5
|
include RunCommand
|
7
|
-
include Configuration::NDepend
|
8
6
|
|
9
7
|
attr_accessor :project_file
|
10
8
|
|
11
9
|
def initialize()
|
12
10
|
super()
|
13
|
-
update_attributes ndepend.to_hash
|
11
|
+
update_attributes Albacore.configuration.ndepend.to_hash
|
14
12
|
end
|
15
13
|
|
16
|
-
def
|
14
|
+
def execute
|
17
15
|
return unless check_command
|
18
16
|
result = run_command @command, create_parameters.join(" ")
|
19
17
|
failure_message = 'Command Failed. See Build Log For Detail'
|