Permalink
Browse files

updated to albacore preview 2

  • Loading branch information...
1 parent 0b71ccb commit b5edd19031e4112d1506529655cebb8dc6459f75 @derickbailey committed Aug 6, 2010
Showing with 16 additions and 16 deletions.
  1. +7 −7 folders.rb
  2. +9 −9 rakefile.rb
View
@@ -1,18 +1,18 @@
root_folder = File.expand_path(File.dirname(__FILE__))
-@folders = {
+Folders = {
:root => root_folder,
:outdir => File.join(root_folder, "build"),
:tools => File.join(root_folder, "tools"),
:nunit => File.join(root_folder, "tools", "nunit")
}
-@commands = {
- :nunit => File.join(@folders[:nunit], "nunit-console.exe")
+Commands = {
+ :nunit => File.join(Folders[:nunit], "nunit-console.exe")
}
-@files = {
- :output => File.join(@folders[:outdir], "myproject.dll"),
- :testdll => File.join(@folders[:outdir], "myproject.specs.dll"),
- :nunitframework => File.join(@folders[:nunit], "nunit.framework.dll")
+Files = {
+ :output => File.join(Folders[:outdir], "myproject.dll"),
+ :testdll => File.join(Folders[:outdir], "myproject.specs.dll"),
+ :nunitframework => File.join(Folders[:nunit], "nunit.framework.dll")
}
View
@@ -1,34 +1,34 @@
require 'rubygems'
-gem 'albacore', '=0.2.0.preview1'
+gem 'albacore', '=0.2.0.preview2'
require 'albacore'
require 'folders'
task :default => [:setup, :build, :build_tests, :test]
Albacore.configure do |config|
config.csc.use :net35
- config.nunit.command = @commands[:nunit]
+ config.nunit.command = Commands[:nunit]
end
task :setup do
- FileUtils.mkdir @folders[:outdir] unless File.exist? @folders[:outdir]
- FileUtils.rm_f("#{@folders[:outdir]}/**/*")
- FileUtils.cp(@files[:nunitframework], @folders[:outdir])
+ FileUtils.mkdir Folders[:outdir] unless File.exist? Folders[:outdir]
+ FileUtils.rm_f("#{Folders[:outdir]}/**/*")
+ FileUtils.cp(Files[:nunitframework], Folders[:outdir])
end
csc :build do |csc|
csc.compile FileList["src/**/*.cs"].exclude("src/**/*Specs.cs")
- csc.output = @files[:output]
+ csc.output = Files[:output]
csc.target = :library
end
csc :build_tests do |csc|
csc.compile FileList["src/**/*Specs.cs"]
- csc.output = @files[:testdll]
+ csc.output = Files[:testdll]
csc.target = :library
- csc.references @files[:output], @files[:nunitframework]
+ csc.references Files[:output], Files[:nunitframework]
end
nunit :test do |nunit|
- nunit.assemblies @files[:testdll]
+ nunit.assemblies Files[:testdll]
end

0 comments on commit b5edd19

Please sign in to comment.