The Pact Consumer Swift library is using Carthage and Swift Package Manager to manage library dependencies. You should install Carthage using Homebrew, then download and build the dependencies using carthage bootstrap
(Carthage), or swift package resolve
(SwiftPM).
./scripts/build.sh
defaults to iOS 11 on iPhone 8
iOS 10.3 on iPhone 7:
xcodebuild -project PactConsumerSwift.xcodeproj -scheme "PactConsumerSwift iOS" -destination "OS=10.3,name=iPhone 7" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
for macOS:
xcodebuild -project PactConsumerSwift.xcodeproj -scheme "PactConsumerSwift macOS" -destination "arch=x86_64" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
for tvOS:
xcodebuild -project PactConsumerSwift.xcodeproj -scheme PactConsumerSwift tvOS -destination OS=11.0,name=Apple TV 4K (at 1080p) -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
pod spec lint PactConsumerSwift.podspec --allow-warnings
Getting set up to work with CocoaPods.
carthage build --no-skip-current --platform iOS,macOS,tvOS
./scripts/start_server.sh &&
swift build -c debug | release &&
swift test &&
./scripts/stop_server.sh
For more information, see the .travis.yml configuration.
Builds on Travis CI with pipeline configuration in .travis.yml.
release.groovy script helps with updating the Changelog, tagging the commit with a release version, and publish to Cocoapods.
groovy release.groovy