manicmaniac/ApolloDeveloperKit

View on GitHub
InstallTests/Makefile

Summary

Maintainability
Test Coverage
.PHONY: all clean carthage carthage-clean cocoapods cocoapods-clean
 
all: carthage cocoapods
 
clean: carthage-clean cocoapods-clean
 
carthage: Cartfile.resolved
cd Carthage/Checkouts/apollo-ios && swift package resolve # Workaround for Carthage's timeout error while reading xcodeproj.
carthage build --platform iOS --no-use-binaries --cache-builds --use-xcframeworks
set -o pipefail && xcodebuild -project ApolloDeveloperKitInstallTests.xcodeproj -scheme ApolloDeveloperKitInstallTests-iOS-Carthage -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build | xcpretty
 
carthage-clean:
$(RM) -R Carthage Cartfile.resolved
 
cocoapods:
pod install
set -o pipefail && xcodebuild -workspace ApolloDeveloperKitInstallTests.xcworkspace -scheme ApolloDeveloperKitInstallTests-iOS-CocoaPods -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build | xcpretty
 
cocoapods-clean:
pod deintegrate
 
Cartfile.resolved:
carthage update --no-build