Quellcode durchsuchen

Adding fastlane

Simon Fairbairn vor 9 Jahren
Ursprung
Commit
5b0d4a6462
4 geänderte Dateien mit 128 neuen und 2 gelöschten Zeilen
  1. 0 2
      SwiftyMarkdown/SwiftyMarkdown.swift
  2. 11 0
      fastlane/Appfile
  3. 88 0
      fastlane/Fastfile
  4. 29 0
      fastlane/README.md

+ 0 - 2
SwiftyMarkdown/SwiftyMarkdown.swift

@@ -54,10 +54,8 @@ class SwiftyMarkdown {
 			self.string = ""
 			return nil
 		}
-		
 	}
 	
-	
 	func attributedString() -> NSAttributedString {
 		let attributedString = NSMutableAttributedString(string: "")
 		

+ 11 - 0
fastlane/Appfile

@@ -0,0 +1,11 @@
+app_identifier "com.voyagetravelapps.Stormcloud" # The bundle identifier of your app
+apple_id "simon@voyagetravelapps.com" # Your Apple email address
+
+# You can uncomment any of the lines below and add your own
+# team selection in case you're in multiple teams
+# team_name "Felix Krause"
+# team_id "Q2CBPJ58CA"
+
+
+# you can even provide different app identifiers, Apple IDs and team names per lane:
+# https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md

+ 88 - 0
fastlane/Fastfile

@@ -0,0 +1,88 @@
+# Customise this file, documentation can be found here:
+# https://github.com/KrauseFx/fastlane/tree/master/docs
+# All available actions: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md
+# can also be listed using the `fastlane actions` command
+
+# Change the syntax highlighting to Ruby
+# All lines starting with a # are ignored when running `fastlane`
+
+# By default, fastlane will send which actions are used
+# No personal data is shared, more information on https://github.com/fastlane/enhancer
+# Uncomment the following line to opt out
+# opt_out_usage
+
+# If you want to automatically update fastlane if a new version is available:
+# update_fastlane
+
+# This is the minimum version number required.
+# Update this, if you use features of a newer version
+fastlane_version "1.36.1"
+
+default_platform :ios
+
+
+
+platform :ios do
+
+  spec = "SwiftyMarkdown.podspec"
+
+  before_all do
+    ensure_git_branch    
+    ensure_git_status_clean
+    increment_build_number
+    commit_version_bump(xcodeproj: './SwiftyMarkdown.xcodeproj')
+  end
+
+  desc "Bumps the patch version, increments it, and pushes it to both the remote and spec repos"
+  lane :patch do
+    # snapshot
+    update(type: "patch")
+  end
+  
+  desc "Bumps the minor version, increments it, and pushes it to both the remote and spec repos"  
+  lane :minor do
+    # snapshot
+    update(type: "minor")
+
+  end  
+
+  lane :initial do 
+    version = version_get_podspec
+    bump(version)
+  end
+  
+  private_lane :update do |options|
+
+    type = options[:type]
+    version = version_bump_podspec(path: spec, bump_type: type)
+    increment_version_number( bump_type: type, version_number: version )
+    git_commit(path: spec, message: "Updating podspec")
+
+    bump(version: version)
+
+  end
+
+  private_lane :bump do |options|
+    version = options[:version]
+    add_git_tag( tag: version)  
+    push_to_git_remote
+    pod_push(path: spec)
+
+  end
+
+  # You can define as many lanes as you want
+
+  after_all do |lane|
+    # This block is called, only if the executed lane was successful
+    notification(subtitle: "SwiftyMarkdown fastlane finished", message: "Completed '#{lane}' successfully")
+  end
+
+  error do |lane, exception|
+    notification(subtitle: "Error: SwiftyMarkdown fastlane", message: "'#{exception.message}'")
+  end
+end
+
+
+
+# More information about multiple platforms in fastlane: https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
+# All available actions: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md

+ 29 - 0
fastlane/README.md

@@ -0,0 +1,29 @@
+fastlane documentation
+================
+# Installation
+```
+sudo gem install fastlane
+```
+# Available Actions
+## iOS
+### ios patch
+```
+fastlane ios patch
+```
+Bumps the patch version, increments it, and pushes it to both the remote and spec repos
+### ios minor
+```
+fastlane ios minor
+```
+Bumps the minor version, increments it, and pushes it to both the remote and spec repos
+### ios initial
+```
+fastlane ios initial
+```
+
+
+----
+
+This README.md is auto-generated and will be re-generated every time to run [fastlane](https://fastlane.tools).  
+More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools).  
+The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane).