Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Carthage #68

Merged
merged 1 commit into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ DerivedData
.idea/
*.hmap
*.xccheckout
Pods
Pods
iOSSnapshotTestCaseCarthageDemo/Carthage/Checkouts
iOSSnapshotTestCaseCarthageDemo/Carthage/Build
17 changes: 17 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,22 @@ function ci_demo() {
popd
}

function ci_carthage_demo() {
NAME=$1
pushd iOSSnapshotTestCaseCarthageDemo
carthage bootstrap
xcodebuild -project iOSSnapshotTestCaseCarthageDemo.xcodeproj \
-scheme iOSSnapshotTestCaseCarthageDemo \
-destination "platform=iOS Simulator,name=${NAME}" \
build-for-testing
xcodebuild -project iOSSnapshotTestCaseCarthageDemo.xcodeproj \
-scheme iOSSnapshotTestCaseCarthageDemo \
-destination "platform=iOS Simulator,name=${NAME}" \
test-without-building
popd
}

ci_lib "iPhone 7" && ci_demo "iPhone 7"
ci_lib "iPhone X" && ci_demo "iPhone X"
ci_lib "iPhone 7" && ci_carthage_demo "iPhone 7"
ci_lib "iPhone X" && ci_carthage_demo "iPhone X"
7 changes: 7 additions & 0 deletions docs/HowToRelease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
= How to Release =
1. Update the CHANGELOG.md
2. Tag the commit in master with `git tag version-number`; e.g., `git tag 0.0.1`
3. Push the tag with `git push --tags`
4. `pod trunk push iOSSnapshotTestCase.podspec`
5. `carthage build --archive --configuration Debug`
2. Upload the `FBSnapshotTestCase.framework.zip` to the tagged release on Github for the version number
1 change: 1 addition & 0 deletions iOSSnapshotTestCaseCarthageDemo/Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "uber/ios-snapshot-test-case" ~> 5.0.1
1 change: 1 addition & 0 deletions iOSSnapshotTestCaseCarthageDemo/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "uber/ios-snapshot-test-case" "5.0.2"
Loading