Skip to content

Commit

Permalink
Misc fixes to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Jun 3, 2016
1 parent e66178b commit e146375
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
*.nupkg
*csproj.user
*.suo
Expand Down
22 changes: 22 additions & 0 deletions build/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
albacore (1.0.0)
nokogiri (~> 1.5)
rake (~> 10.0)
rubyzip (~> 1.0)
mini_portile2 (2.0.0)
nokogiri (1.6.7.2-x86-mingw32)
mini_portile2 (~> 2.0.0.rc2)
rake (10.5.0)
rubyzip (1.2.0)

PLATFORMS
x86-mingw32

DEPENDENCIES
albacore (~> 1.0)
nokogiri

BUNDLED WITH
1.12.5
8 changes: 4 additions & 4 deletions build/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require 'openssl'
project_name = "DbUp.Support.SqlServer.Scripting"
project_copyright = "Copyright #{DateTime.now.strftime('%Y')}"

version_info = File.read('version.txt').split(':')
version_info = open("version.txt").gets.split(':')
version_number = version_info[0]
version_notes = version_info[1]

Expand All @@ -20,17 +20,17 @@ task :restore do |t|
end
end

task :build => [:version] do |t|
task :build do |t|
build :build => [:restore] do |b|
b.sln = 'DbUp.Support.SqlServer.Scripting.sln'
b.sln = '..\\DbUp.Support.SqlServer.Scripting.sln'
b.target = ['Clean', 'Rebuild']
b.prop 'Configuration', 'Release'
end
end

task :package => [:build] do |t, args|
desc "copy lib"
sh "xcopy /Y /S /EXCLUDE:exclude.txt ..\\#{project_name}\\bin\\Release\\net35 .\\pack\\lib\\net35\\"
sh "xcopy /Y /S /EXCLUDE:exclude.txt ..\\#{project_name}\\bin\\Release\\#{project_name}* .\\pack\\lib\\net35\\"
desc "create the nuget package"
sh "nuget.exe pack .\\pack\\#{project_name}.nuspec -Properties \"version=#{version_number};notes=v#{version_number} - #{version_notes};copyright=#{project_copyright}\""
end
Expand Down

0 comments on commit e146375

Please sign in to comment.