Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 098067ebfa
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (36 sloc) 0.995 kB
require 'rspec/core/rake_task'
apisln = 'StudiosApi.sln'
cfg = ENV["CONFIG"]
dotnet = ENV["DOTNETPATH"]
vspath = ENV["VSPATH"]
tfsTestContainer = './TfsSynchronizer/build/tests/TestSynchronizer.dll'
tfsTestSettings = './TfsSynchronizer/Local.testsettings'
task :build => [:clean, :compile, :spec, :installer]
task :compile do
puts "Building '#{apisln}' using '#{cfg}' configuration."
sh "msbuild.exe /t:Rebuild /p:configuration=#{cfg} #{apisln}"
end
task :clean do
clean 'build'
sh "devenv.exe #{apisln} /Clean "
end
task :doc do
sh "msbuild.exe /p:configuration=#{cfg} documentation.shfbproj"
end
task :installer do
sh "devenv ApiSetup/ApiSetup.vdproj /Rebuild #{cfg} /Log StudiosApiSetupLog.txt"
end
RSpec::Core::RakeTask.new(:spec) do |t|
t.skip_bundler = true
end
task :install do
clean '.bundle'
mkdir 'vendor' unless File.exists? 'vendor'
sh 'bundle install --path vendor'
end
def clean path
rm_r path if File.exists? path
end
task :deploy do
sh "deploy.bat"
end
Jump to Line
Something went wrong with that request. Please try again.