Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebookarchive/ios-snapshot-test-case
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LootApp/ios-snapshot-test-case
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 5 files changed
  • 1 contributor

Commits on Sep 14, 2017

  1. update gitignore

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    0ac17c5 View commit details
  2. update fastfile

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    cd9d6bd View commit details
  3. update fastlane

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    349ab44 View commit details
  4. version bump

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    9bac56f View commit details
  5. trick version bump

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    cd796e5 View commit details
  6. New release version bump

    Fabio Milano committed Sep 14, 2017
    Copy the full SHA
    60d2d71 View commit details
Showing with 91 additions and 3 deletions.
  1. +4 −1 .gitignore
  2. +1 −1 FBSnapshotTestCase/FBSnapshotTestCase-Info.plist
  3. +1 −1 FBSnapshotTestCaseTests/FBSnapshotTestCaseTests-Info.plist
  4. +42 −0 fastlane/Fastfile
  5. +43 −0 fastlane/README.md
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -15,4 +15,7 @@ DerivedData
.idea/
*.hmap
*.xccheckout
Pods
Pods

fastlane/report.xml
*.framework.zip
2 changes: 1 addition & 1 deletion FBSnapshotTestCase/FBSnapshotTestCase-Info.plist
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>2.1.4.swift.3.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
2 changes: 1 addition & 1 deletion FBSnapshotTestCaseTests/FBSnapshotTestCaseTests-Info.plist
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>2.1.4.swift.3.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
42 changes: 42 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
fastlane_version "1.66.0"
default_platform :ios

SLACK_URL = "https://hooks.slack.com/services/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".freeze
FRAMEWORK_NAME = "FBSnapshotTestCase".freeze
REPOSITORY_NAME = "ios-snapshot-test-case".freeze

platform :ios do
desc "Release new version"
lane :release do |options|
target_version = options[:version]
raise "The version is missed. Use `fastlane release version:{version_number}`.`" if target_version.nil?

ensure_git_branch
ensure_git_status_clean

# Increment version
increment_version_number(version_number: target_version)

# Create Carthage framework
Actions.sh("cd .. && carthage build --no-skip-current && carthage archive #{FRAMEWORK_NAME}")
framework_binary = File.join(File.expand_path('../..', __FILE__),"#{FRAMEWORK_NAME}.framework.zip")
raise "No binary found to upload #{framework_binary}" if File.file?(framework_binary) == false

git_add
git_commit(path: ".", message: "New release version bump")

# Create release tag
push_to_git_remote

set_github_release(
repository_name: "LootApp/#{REPOSITORY_NAME}",
api_token: ENV['GITHUB_API_TOKEN'],
tag_name: target_version,
upload_assets: [ framework_binary ],
name: target_version,
description: "Release of #{target_version}"
)

File.delete(framework_binary)
end
end
43 changes: 43 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

## Choose your installation method:

<table width="100%" >
<tr>
<th width="33%"><a href="http://brew.sh">Homebrew</a></td>
<th width="33%">Installer Script</td>
<th width="33%">Rubygems</td>
</tr>
<tr>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS or Linux with Ruby 2.0.0 or above</td>
</tr>
<tr>
<td width="33%"><code>brew cask install fastlane</code></td>
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
</tr>
</table>

# Available Actions
## iOS
### ios release
```
fastlane ios release
```
Release new version

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).