Skip to content

Commit

Permalink
Merge branch 'deploy/1.9.1' into productive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Sep 28, 2018
2 parents 9b97c80 + 546d205 commit 6375530
Show file tree
Hide file tree
Showing 34 changed files with 1,371 additions and 497 deletions.
84 changes: 84 additions & 0 deletions .projlint.yml
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
16 changes: 16 additions & 0 deletions .sourcery/LinuxMain.stencil
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 %}])
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

Loading

0 comments on commit 6375530

Please sign in to comment.