Skip to content

Commit

Permalink
Support Carthage (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanzeino authored Jan 16, 2019
1 parent 7849f44 commit 64dbb35
Show file tree
Hide file tree
Showing 18 changed files with 915 additions and 1 deletion.
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

0 comments on commit 64dbb35

Please sign in to comment.