-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'deploy/1.9.1' into productive
- Loading branch information
Showing
34 changed files
with
1,371 additions
and
497 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
shared_variables: | ||
rightholder: Flinesoft | ||
project_name: CSVImporter | ||
|
||
rules: | ||
- xcode_build_phases: | ||
project_path: <:project_name:>.xcodeproj | ||
target_name: <:project_name:> iOS | ||
run_scripts: | ||
SwiftLint: | | ||
if [ "${CONFIGURATION}" = "Debug" ]; then | ||
if which swiftlint > /dev/null; then | ||
swiftlint | ||
else | ||
echo "warning: SwiftLint not installed, download it from https://github.com/realm/SwiftLint" | ||
fi | ||
fi | ||
ProjLint: | | ||
if [ "${CONFIGURATION}" = "Debug" ]; then | ||
if which projlint > /dev/null; then | ||
projlint lint --xcode --timeout 2 --ignore-network-errors | ||
else | ||
echo "warning: ProjLint not installed, download it from https://github.com/JamitLabs/ProjLint" | ||
fi | ||
fi | ||
- xcode_project_navigator: | ||
project_path: <:project_name:>.xcodeproj | ||
sorted: | ||
- Frameworks/<:project_name:> | ||
- Frameworks/SupportingFiles | ||
- Tests/<:project_name:>Tests | ||
- Tests/SupportingFiles | ||
inner_group_order: | ||
- assets | ||
- entitlements | ||
- plists | ||
- strings | ||
- others | ||
- [code_files, interfaces] | ||
- folders | ||
structure: | ||
- Frameworks: | ||
- <:project_name:> | ||
- SupportingFiles: | ||
- Info.plist | ||
- Tests: | ||
- <:project_name:>Tests | ||
- SupportingFiles: | ||
- Info.plist | ||
- RootFiles: | ||
- beak.swift | ||
- .projlint.yml | ||
- .swiftlint.yml | ||
- Package.swift | ||
- Products | ||
- file_content_template: | ||
matching: | ||
.swiftlint.yml: | ||
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/SwiftLint.stencil" | ||
parameters: | ||
rightholder: <:rightholder:> | ||
.projlint.yml: | ||
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/ProjLint.stencil" | ||
parameters: | ||
rightholder: <:rightholder:> | ||
project_name: <:project_name:> | ||
- file_existence: | ||
existing_paths: | ||
- .gitignore | ||
- .swiftlint.yml | ||
- .sourcery/LinuxMain.stencil | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING.md | ||
- CHANGELOG.md | ||
- LICENSE | ||
- README.md | ||
- <:project_name:>.podspec | ||
- Package.swift | ||
- beak.swift | ||
- <:project_name:>.xcodeproj/xcshareddata/IDETemplateMacros.plist | ||
- Frameworks/SupportingFiles/Info.plist | ||
- Tests/SupportingFiles/Info.plist |
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,16 @@ | ||
@testable import CSVImporterTests | ||
import XCTest | ||
|
||
// swiftlint:disable line_length file_length | ||
|
||
{% for type in types.classes|based:"XCTestCase" %} | ||
extension {{ type.name }} { | ||
static var allTests: [(String, ({{ type.name }}) -> () throws -> Void)] = [ | ||
{% for method in type.methods where method.parameters.count == 0 and method.shortName|hasPrefix:"test" and method|!annotated:"skipTestOnLinux" %} ("{{ method.shortName }}", {{ method.shortName }}){% if not forloop.last %},{% endif %} | ||
{% endfor %}] | ||
} | ||
|
||
{% endfor %} | ||
XCTMain([ | ||
{% for type in types.classes|based:"XCTestCase" %} testCase({{ type.name }}.allTests){% if not forloop.last %},{% endif %} | ||
{% endfor %}]) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.