-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
namespace :pod do | ||
desc 'Lint the Pod' | ||
task :lint do |task| | ||
Utils.print_info 'Linting the pod spec' | ||
Utils.run(%Q(bundle exec pod lib lint "#{POD_NAME}.podspec" --quick), task) | ||
if File.file?('Podfile') | ||
namespace :pod do | ||
desc 'Lint the Pod' | ||
task :lint do |task| | ||
Utils.print_info 'Linting the pod spec' | ||
Utils.run(%Q(bundle exec pod lib lint "#{POD_NAME}.podspec" --quick), task) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
namespace :spm do | ||
desc 'Build using SPM' | ||
task :build do |task| | ||
Utils.print_info 'Compile using SPM' | ||
Utils.run("swift build", task, xcrun: true) | ||
end | ||
if File.file?('Package.swift') | ||
namespace :spm do | ||
desc 'Build using SPM' | ||
task :build do |task| | ||
Utils.print_info 'Compile using SPM' | ||
Utils.run("swift build", task, xcrun: true) | ||
end | ||
|
||
desc 'Run SPM Unit Tests' | ||
task :test => :build do |task| | ||
Utils.print_info 'Run the unit tests using SPM' | ||
Utils.run("swift test", task, xcrun: true) | ||
desc 'Run SPM Unit Tests' | ||
task :test => :build do |task| | ||
Utils.print_info 'Run the unit tests using SPM' | ||
Utils.run("swift test", task, xcrun: true) | ||
end | ||
end | ||
end |