Skip to content

Commit

Permalink
Updated paket for recommended setup
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyKaylor authored and jeremydmiller committed May 16, 2016
1 parent d3b0abf commit b590241
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ FakesAssemblies/

artifacts
src/CommonAssemblyInfo.cs
paket.lock
paket.exe
.idea/

*.DotSettings

/results
/results
37 changes: 25 additions & 12 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,14 @@
end
end


desc 'Runs the Mocha tests'
task :mocha do
sh "npm install"
sh "npm run test"
end

desc 'Compile the code'
task :compile => [:clean] do
sh "paket.exe install"

task :compile => [:clean, 'paket:restore'] do
msbuild = '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"'

sh "#{msbuild} src/Marten.sln /property:Configuration=#{COMPILE_TARGET} /v:m /t:rebuild /nr:False /maxcpucount:2"
Expand All @@ -86,12 +83,6 @@

end

desc 'Build the Nupkg file'
task :pack => [:compile] do
sh "paket.exe pack output artifacts version #{BUILD_NUMBER}"
end


desc 'Run the unit tests'
task :test => [:compile] do
Dir.mkdir RESULTS_DIR
Expand Down Expand Up @@ -120,8 +111,30 @@
end

desc "Launches the documentation project in editable mode"
task :docs do
sh "paket.exe restore"
task :docs => ['paket:restore'] do
sh "packages/Storyteller/tools/st.exe doc-run -v #{BUILD_VERSION}"
end

namespace :paket do
desc 'Pulls the latest paket.exe into .paket folder'
task :bootstrap do
sh '.paket/paket.bootstrapper.exe' unless File.exists? '.paket/paket.exe'
end

desc 'Restores nuget packages with paket'
task :restore do
sh '.paket/paket.exe restore'
end

desc 'Setup paket.exe symlink for convenience (requires elevation)'
task :symlink do
sh '.paket/paket.bootstrapper.exe'
sh 'cmd.exe /c mklink .\paket.exe .paket\paket.exe'
end

desc 'Build the Nupkg file'
task :pack => [:compile] do
sh ".paket/paket.exe pack output artifacts version #{BUILD_NUMBER}"
end
end

0 comments on commit b590241

Please sign in to comment.