Permalink
Browse files

Introduced simple convention for rake

  • Loading branch information...
1 parent f4cffbe commit 24fcefdd7ef7eceb62fc3793ca0e40bfe4e45632 @danielmarbach danielmarbach committed Jan 18, 2014
Showing with 6 additions and 3 deletions.
  1. +6 −3 rakefile.rb
View
@@ -29,7 +29,10 @@
:nunit_framework => "net-3.5",
:mspec_options => (["--teamcity"] if ENV.include?('TEAMCITY_PROJECT_NAME')) || []
}
-
+
+ configatron.solution = Configatron::Dynamic.new do
+ FileList.new("*.sln").to_a[0]
+ end
configatron.nuget.key = Configatron::Dynamic.new do
next File.read('NUGET_KEY') if File.readable?('NUGET_KEY')
end
@@ -70,15 +73,15 @@
task :restore do
nopts = %W(
- nuget restore ./Machine.Specifications.sln
+ nuget restore "#{configatron.solution}"
)
sh(*nopts)
end
desc "Run a simple clean/build"
msbuild :build do |msb|
- msb.solution = "./Machine.Specifications.sln"
+ msb.solution = configatron.solution
msb.targets = [:Clean, :Build]
msb.use :net4
msb.verbosity = :minimal

0 comments on commit 24fcefd

Please sign in to comment.