diff --git a/.swiftlint.yml b/.swiftlint.yml index e6ca7e9..6f767d9 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,4 +1,5 @@ disabled_rules: + - identifier_name - trailing_whitespace - type_name - vertical_whitespace diff --git a/Fastlane/Fastfile b/Fastlane/Fastfile index 6fbd255..e2faa5b 100644 --- a/Fastlane/Fastfile +++ b/Fastlane/Fastfile @@ -4,11 +4,41 @@ default_platform :ios platform :ios do + + # Lint ======================= + + desc "Run SwiftLint" + lane :lint do + swiftlint(strict: true) + end + + + # Test =================== + + desc "Run unit tests" + lane :test do + # Note: Since UIKit tests must be run from a project and + # this project has no such project, we instead ask for a + # confirmation that the test suite has been run. + # resolve_dependencies + # run_tests(scheme: "KeyboardKit") + confirm = prompt(text: "Have you successfully run all unit tests? [y/n]: ") + if confirm != "y" + UI.user_error!("You must run all unit tests before releasing a new version!") + end + end + + + # Version ================ + desc "Create a new version" lane :version do |options| ensure_git_status_clean ensure_git_branch(branch: 'master') + lint + test + bump_type = options[:type] if bump_type == nil or bump_type.empty? bump_type = "patch" diff --git a/Release Notes.md b/Release Notes.md index 2a4d04b..f429778 100644 --- a/Release Notes.md +++ b/Release Notes.md @@ -3,6 +3,11 @@ I will bump revision by revision, until SwiftKit has all functionality that it should have from iExtra. I will then bump it to `1.0.0`. +## 0.3.0 + +This version adds improved support for watchOS and tvOS. + + ## 0.2.0 This version adds: @@ -10,7 +15,7 @@ This version adds: * new `Localization` utilities, like `Translator`s and `LocalizationService`s. * new `FileDirectoryService` utilities. -This version also adds macOS 10. +This version also adds macOS support. ## 0.1.0