Copy & adapt rake infrastructure from swiftgen projects
This commit is contained in:
18
rakelib/spm.rake
Normal file
18
rakelib/spm.rake
Normal file
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Used constants:
|
||||
# _none_
|
||||
|
||||
namespace :spm do
|
||||
desc 'Build using SPM'
|
||||
task :build do |task|
|
||||
Utils.print_header 'Compile using SPM'
|
||||
Utils.run('swift build', task, xcrun: true)
|
||||
end
|
||||
|
||||
desc 'Run SPM Unit Tests'
|
||||
task :test => :build do |task|
|
||||
Utils.print_header 'Run the unit tests using SPM'
|
||||
Utils.run('swift test --parallel', task, xcrun: true)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user