Get rid of dependency on albacore

This commit is contained in:
Antony Male 2015-09-25 15:28:11 +01:00
parent 81f256d231
commit 9263753600
1 changed files with 8 additions and 16 deletions

View File

@ -1,10 +1,3 @@
begin
require 'albacore'
rescue LoadError
warn "Please run 'gem install albacore --pre'"
exit 1
end
CONFIG = ENV['CONFIG'] || 'Debug' CONFIG = ENV['CONFIG'] || 'Debug'
COVERAGE_DIR = 'Coverage' COVERAGE_DIR = 'Coverage'
@ -15,13 +8,14 @@ NUSPEC = 'NuGet/Stylet.nuspec'
ASSEMBLY_INFO = 'Stylet/Properties/AssemblyInfo.cs' ASSEMBLY_INFO = 'Stylet/Properties/AssemblyInfo.cs'
CSPROJ = 'Stylet/Stylet.csproj'
MSBUILD = %q{C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe}
directory COVERAGE_DIR directory COVERAGE_DIR
desc "Build Stylet.sln using the current CONFIG (or Debug)" desc "Build the project for release"
build :build do |b| task :build do
b.sln = "Stylet.sln" sh MSBUILD, CSPROJ, "/t:Clean;Rebuild", "/p:Configuration=Release", "/verbosity:normal"
b.target = [:Build]
b.prop 'Configuration', CONFIG
end end
task :test_environment => [:build] do task :test_environment => [:build] do
@ -40,10 +34,8 @@ task :test_environment => [:build] do
raise "ReportGenerator not found. Restore NuGet packages" unless REPORT_GENERATOR raise "ReportGenerator not found. Restore NuGet packages" unless REPORT_GENERATOR
end end
test_runner :nunit_test_runner => [:test_environment] do |t| task :nunit_test_runner => [:test_environment] do
t.exe = NUNIT_CONSOLE sh NUNIT_CONSOLE, UNIT_TESTS_DLL
t.files = [UNIT_TESTS_DLL]
t.add_parameter '/nologo'
end end
desc "Run unit tests using the current CONFIG (or Debug)" desc "Run unit tests using the current CONFIG (or Debug)"