albacore 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -2
- data/VERSION +1 -1
- data/lib/albacore/assemblyinfo.rb +1 -1
- data/lib/albacore/command.rb +1 -1
- data/lib/albacore/expandtemplates.rb +1 -1
- data/lib/albacore/msbuild.rb +66 -66
- data/lib/albacore/mspectestrunner.rb +1 -1
- data/lib/albacore/ncoverconsole.rb +1 -1
- data/lib/albacore/ncoverreport.rb +1 -1
- data/lib/albacore/ncoverreports/codecoveragebase.rb +1 -1
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +1 -1
- data/lib/albacore/ncoverreports/reportfilterbase.rb +1 -1
- data/lib/albacore/ncoverreports/summaryreport.rb +1 -1
- data/lib/albacore/nunittestrunner.rb +1 -1
- data/lib/albacore/sftp.rb +1 -1
- data/lib/albacore/sqlcmd.rb +1 -1
- data/lib/albacore/ssh.rb +1 -1
- data/lib/albacore/xunittestrunner.rb +1 -1
- data/lib/albacore/zipdirectory.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -74,7 +74,8 @@ Anyone can fork the main repository and submit patches, as well. And lastly, the
|
|
74
74
|
Many thanks for contributions to Albacore are due:
|
75
75
|
|
76
76
|
* [Ben Hall](http://github.com/benhall): SSH, SFTP, ZipDirectory, Rename, YAML auto config, Wiki pages, and other great additions
|
77
|
-
* [Steven Harman]
|
78
|
-
* [
|
77
|
+
* [Steven Harman](http://github.com/stevenharman): Finding some wicked bugs, patching nunit test runner, and working on the nant task
|
78
|
+
* [Andreone](http://github.com/Andreone): Significant Wiki contributions, questions and contributions on the google group
|
79
|
+
* [Brian Donahue](http://github.com/briandonahue): Inspiration and initial code for the ExpandTemplates task
|
79
80
|
* [Sean Biefeld](http://github.com/seanbiefeld): MSpecTestRunner for NCoverConsole
|
80
81
|
* [Kevin Colyar](http://github.com/kevincolyar): Testing and updating of MSBuild to work with Cygwin
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/albacore/command.rb
CHANGED
data/lib/albacore/msbuild.rb
CHANGED
@@ -1,66 +1,66 @@
|
|
1
|
-
require 'albacore/support/albacore_helper'
|
2
|
-
|
3
|
-
class MSBuild
|
4
|
-
include RunCommand
|
5
|
-
include YAMLConfig
|
6
|
-
include Logging
|
7
|
-
|
8
|
-
attr_accessor :solution, :verbosity
|
9
|
-
|
10
|
-
def initialize
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
def build_path_to_command
|
16
|
-
win_dir = ENV['windir'] || ENV['WINDIR']
|
17
|
-
win_dir = 'C:/Windows' if win_dir.nil?
|
18
|
-
|
19
|
-
File.join(win_dir.dup, 'Microsoft.NET', 'Framework', 'v3.5', 'MSBuild.exe')
|
20
|
-
end
|
21
|
-
|
22
|
-
def targets(targets)
|
23
|
-
@targets=targets
|
24
|
-
end
|
25
|
-
|
26
|
-
def properties=(properties)
|
27
|
-
@properties = properties
|
28
|
-
end
|
29
|
-
|
30
|
-
def build
|
31
|
-
build_solution(@solution)
|
32
|
-
end
|
33
|
-
|
34
|
-
def build_solution(solution)
|
35
|
-
check_solution solution
|
36
|
-
|
37
|
-
command_parameters = []
|
38
|
-
command_parameters << "\"#{solution}\""
|
39
|
-
command_parameters << "\"/verbosity:#{@verbosity}\"" if @verbosity != nil
|
40
|
-
command_parameters << build_properties if @properties != nil
|
41
|
-
command_parameters << "\"/target:#{build_targets}\"" if @targets != nil
|
42
|
-
|
43
|
-
result = run_command "MSBuild", command_parameters.join(" ")
|
44
|
-
|
45
|
-
failure_message = 'MSBuild Failed. See Build Log For Detail'
|
46
|
-
fail_with_message failure_message if !result
|
47
|
-
end
|
48
|
-
|
49
|
-
def check_solution(file)
|
50
|
-
return if file
|
51
|
-
msg = 'solution cannot be nil'
|
52
|
-
fail_with_message msg
|
53
|
-
end
|
54
|
-
|
55
|
-
def build_targets
|
56
|
-
@targets.join ";"
|
57
|
-
end
|
58
|
-
|
59
|
-
def build_properties
|
60
|
-
option_text = []
|
61
|
-
@properties.each do |key, value|
|
62
|
-
option_text << "/p:#{key}\=\"#{value}\""
|
63
|
-
end
|
64
|
-
option_text.join(" ")
|
65
|
-
end
|
66
|
-
end
|
1
|
+
require 'albacore/support/albacore_helper'
|
2
|
+
|
3
|
+
class MSBuild
|
4
|
+
include RunCommand
|
5
|
+
include YAMLConfig
|
6
|
+
include Logging
|
7
|
+
|
8
|
+
attr_accessor :solution, :verbosity
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@path_to_command = build_path_to_command
|
12
|
+
super()
|
13
|
+
end
|
14
|
+
|
15
|
+
def build_path_to_command
|
16
|
+
win_dir = ENV['windir'] || ENV['WINDIR']
|
17
|
+
win_dir = 'C:/Windows' if win_dir.nil?
|
18
|
+
|
19
|
+
File.join(win_dir.dup, 'Microsoft.NET', 'Framework', 'v3.5', 'MSBuild.exe')
|
20
|
+
end
|
21
|
+
|
22
|
+
def targets(targets)
|
23
|
+
@targets=targets
|
24
|
+
end
|
25
|
+
|
26
|
+
def properties=(properties)
|
27
|
+
@properties = properties
|
28
|
+
end
|
29
|
+
|
30
|
+
def build
|
31
|
+
build_solution(@solution)
|
32
|
+
end
|
33
|
+
|
34
|
+
def build_solution(solution)
|
35
|
+
check_solution solution
|
36
|
+
|
37
|
+
command_parameters = []
|
38
|
+
command_parameters << "\"#{solution}\""
|
39
|
+
command_parameters << "\"/verbosity:#{@verbosity}\"" if @verbosity != nil
|
40
|
+
command_parameters << build_properties if @properties != nil
|
41
|
+
command_parameters << "\"/target:#{build_targets}\"" if @targets != nil
|
42
|
+
|
43
|
+
result = run_command "MSBuild", command_parameters.join(" ")
|
44
|
+
|
45
|
+
failure_message = 'MSBuild Failed. See Build Log For Detail'
|
46
|
+
fail_with_message failure_message if !result
|
47
|
+
end
|
48
|
+
|
49
|
+
def check_solution(file)
|
50
|
+
return if file
|
51
|
+
msg = 'solution cannot be nil'
|
52
|
+
fail_with_message msg
|
53
|
+
end
|
54
|
+
|
55
|
+
def build_targets
|
56
|
+
@targets.join ";"
|
57
|
+
end
|
58
|
+
|
59
|
+
def build_properties
|
60
|
+
option_text = []
|
61
|
+
@properties.each do |key, value|
|
62
|
+
option_text << "/p:#{key}\=\"#{value}\""
|
63
|
+
end
|
64
|
+
option_text.join(" ")
|
65
|
+
end
|
66
|
+
end
|
@@ -8,12 +8,12 @@ class NCoverConsole
|
|
8
8
|
attr_accessor :ignore_assemblies, :coverage
|
9
9
|
|
10
10
|
def initialize
|
11
|
-
super()
|
12
11
|
@output = {}
|
13
12
|
@testrunner_args = []
|
14
13
|
@cover_assemblies = []
|
15
14
|
@ignore_assemblies = []
|
16
15
|
@coverage = []
|
16
|
+
super()
|
17
17
|
end
|
18
18
|
|
19
19
|
def working_directory=(working_dir)
|
@@ -7,11 +7,11 @@ module NCover
|
|
7
7
|
attr_accessor :coverage_type, :minimum, :item_type
|
8
8
|
|
9
9
|
def initialize(coverage_type, params={})
|
10
|
-
super()
|
11
10
|
@coverage_type = coverage_type
|
12
11
|
@minimum = 0
|
13
12
|
@item_type = :View
|
14
13
|
parse_config(params) unless params.nil?
|
14
|
+
super()
|
15
15
|
end
|
16
16
|
|
17
17
|
def get_coverage_options
|
@@ -7,12 +7,12 @@ module NCover
|
|
7
7
|
attr_accessor :filter, :filter_type, :item_type, :is_regex
|
8
8
|
|
9
9
|
def initialize(item_type, params={})
|
10
|
-
super()
|
11
10
|
@filter = ""
|
12
11
|
@item_type = item_type
|
13
12
|
@is_regex = false
|
14
13
|
@filter_type = :exclude
|
15
14
|
parse_config(params) unless params.nil?
|
15
|
+
super()
|
16
16
|
end
|
17
17
|
|
18
18
|
def get_filter_options
|
data/lib/albacore/sftp.rb
CHANGED
data/lib/albacore/sqlcmd.rb
CHANGED
data/lib/albacore/ssh.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: albacore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derick Bailey
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-12-
|
14
|
+
date: 2009-12-31 00:00:00 -06:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|