Permalink
Browse files

Templates are run after build

  • Loading branch information...
1 parent 9fb7fb4 commit e6839a1e44f3627378dab635e79240fdbae91fd8 @danielmarbach danielmarbach committed Jan 3, 2014
Showing with 10 additions and 15 deletions.
  1. +10 −15 rakefile.rb
View
@@ -13,9 +13,9 @@
exit 0
end
-task :rebuild => [:clean, :configure, :restore, :build]
+task :rebuild => [ :clean, :configure, :restore, :build, :templates ]
-task :default => [:rebuild, :tests, :specs ]
+task :default => [ :rebuild, :tests, :specs ]
desc "Prepares necessary configuration for build"
task :configure do
@@ -42,21 +42,10 @@
configatron.version.full = Configatron::Delayed.new do
open("|Tools/GitFlowVersion/GitFlowVersion.exe").read().scan(/NugetVersion":"(.*)"/)[0][0][0,20]
end
- configatron.version.short = Configatron::Delayed.new do
- open("|Tools/GitFlowVersion/GitFlowVersion.exe").read().scan(/ShortVersion":"(.*)"/)[0][0]
- end
configatron.configure_from_hash build_config
- configatron.protect_all!
+ #configatron.protect_all!
puts configatron.inspect
-
- #Write teamcity build number
- puts "##teamcity[buildNumber '#{configatron.version.short}']"
-
- #Prepare templates
- FileList.new('**/*.template').each do |template|
- QuickTemplate.new(template).exec(configatron)
- end
end
desc "Prepares the working directory for a new build"
@@ -75,7 +64,6 @@
end
FileUtils.rm_rf filesToClean
- Dir.mkdir 'Build'
Dir.mkdir 'Distribution'
Dir.mkdir 'Specs'
end
@@ -128,6 +116,13 @@
]
end
+task :templates do
+ #Prepare templates
+ FileList.new('**/*.template').each do |template|
+ QuickTemplate.new(template).exec(configatron)
+ end
+end
+
desc "Package build artifacts as a NuGet package and a symbols package"
task :createpackage => [ :default ] do
opts = %W(

0 comments on commit e6839a1

Please sign in to comment.