-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,460 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage_service: coveralls | ||
xcodeproj: Insights.xcodeproj | ||
scheme: Insights | ||
ignore: | ||
- Tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
excluded: | ||
- Carthage | ||
- Tests | ||
disabled_rules: # rule identifiers to exclude from running | ||
- type_body_length | ||
- file_length | ||
- function_parameter_count | ||
type_name: | ||
max_length: # warning and error | ||
warning: 60 | ||
error: 100 | ||
identifier_name: | ||
max_length: # warning and error | ||
warning: 60 | ||
error: 100 | ||
opt_in_rules: # some rules are only opt-in | ||
- first_where | ||
- unused_declaration | ||
- empty_count | ||
- empty_string | ||
- empty_xctest_method | ||
- explicit_init | ||
- closure_body_length | ||
- closure_end_indentation | ||
- closure_spacing | ||
- collection_alignment | ||
- conditional_returns_on_newline | ||
- contains_over_first_not_nil | ||
- array_init | ||
- attributes | ||
- fallthrough | ||
- identical_operands | ||
- implicit_return | ||
- joined_default_parameter | ||
- last_where | ||
- literal_expression_end_indentation | ||
- missing_docs | ||
- modifier_order | ||
- multiline_arguments | ||
- multiline_function_chains | ||
- multiline_literal_brackets | ||
- multiline_parameters | ||
- operator_usage_whitespace | ||
- override_in_extension | ||
- pattern_matching_keywords | ||
- redundant_nil_coalescing | ||
- redundant_type_annotation | ||
- single_test_class | ||
- sorted_first_last | ||
- sorted_imports | ||
- static_operator | ||
- strict_fileprivate | ||
- unavailable_function | ||
- untyped_error_in_catch | ||
- unused_import | ||
- vertical_parameter_alignment_on_call | ||
- vertical_whitespace_between_cases | ||
- vertical_whitespace_closing_braces | ||
- vertical_whitespace_opening_braces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
language: swift | ||
osx_image: xcode11.1 | ||
os: osx | ||
branches: | ||
only: | ||
- /.*/ | ||
cache: | ||
directories: | ||
- Carthage | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
- LANG=en_US.UTF-8 | ||
- PROJECT=Insights.xcodeproj | ||
- IOS_FRAMEWORK_SCHEME="Insights" | ||
|
||
matrix: | ||
- ios_version='13.1' ios_device='iPhone 11' scheme="$IOS_FRAMEWORK_SCHEME" platform='iOS Simulator' | ||
before_install: | ||
# Boot the emulator by ID | ||
- | | ||
ios_uid=$(xcrun instruments -s devices | grep Simulator | grep "$ios_device ($ios_version)*" | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}") | ||
xcrun simctl boot $ios_uid | ||
# List all emulator available | ||
- xcrun simctl list | ||
# Update the brew and build dependencies tools | ||
- brew outdated carthage || brew upgrade carthage | ||
- carthage bootstrap --verbose --no-use-binaries --platform iOS --cache-builds | ||
- gem i slather | ||
# Force to update the Swiftlint to the last stable version | ||
- brew outdated swiftlint || brew upgrade swiftlint | ||
# Print the booted emulator | ||
- xcrun simctl list | grep "(Booted)" | ||
# Print the swiftlint version | ||
- swiftlint version | ||
script: | | ||
set -o pipefail | ||
set -e | ||
# Define the destination emulator | ||
destination="platform=$platform,OS=$ios_version,name=$ios_device" | ||
# Build and test Framework in Debug | ||
xcodebuild -enableCodeCoverage YES clean build test -project "$PROJECT" \ | ||
-scheme "$scheme" \ | ||
-destination "$destination" \ | ||
-configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | ||
# Lint - Add `--strict` to fail for warning and violation | ||
swiftlint lint --reporter json | ||
after_success: slather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "JanGorman/Hippolyte" "0.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "JanGorman/Hippolyte" "0.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem 'slather' | ||
gem 'fastlane' | ||
gem 'cocoapods' |
Oops, something went wrong.