Skip to content

Commit

Permalink
Added clean task for removing build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jweber committed May 6, 2016
1 parent b221b70 commit 6356d2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
task :all => [:net45] do
end

build :clean do |b|
b.prop 'configuration', $config
b.prop 'framework', 'NET45'
b.target = ['clean']
b.file = "source/#{PROJECT_NAME}.sln"
end

build :net45 => ["nuget:restore", "version"] do |b|
b.prop 'configuration', $config
b.prop 'framework', 'NET45'
Expand All @@ -56,6 +63,11 @@
tests.add_parameter "/xml=#{File.join(ARTIFACTS_PATH, "nunit-test-results.xml")}"
end

desc 'Cleans build artifacts'
task :clean => 'build:clean' do
rm_rf ARTIFACTS_PATH
end

desc 'Builds release package'
task :package => 'build:all' do
include FileUtils
Expand Down

0 comments on commit 6356d2c

Please sign in to comment.