Skip to content

Commit 037de82

Browse files
author
Chris Pilcher
committed
Merge branch 'master' of https://github.com/raywenderlich/swift-algorithm-club into swift-lint
Conflicts: .travis.yml
2 parents 6a8a677 + 056795e commit 037de82

File tree

42 files changed

+3466
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3466
-52
lines changed

.travis.yml

+31-25
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
11
language: objective-c
22
osx_image: xcode7.3
3+
sudo: false
34

45
install:
56

67
- ./install_swiftlint.sh
78

89
script:
910

10-
- swiftlint
11-
12-
- xcodebuild test -project ./All-Pairs\ Shortest\ Paths/APSP/APSP.xcodeproj -scheme APSPTests
13-
- xcodebuild test -project ./Array2D/Tests/Tests.xcodeproj -scheme Tests
14-
- xcodebuild test -project ./AVL\ Tree/Tests/Tests.xcodeproj -scheme Tests
15-
- xcodebuild test -project ./Binary\ Search/Tests/Tests.xcodeproj -scheme Tests
16-
- xcodebuild test -project ./Binary\ Search\ Tree/Solution\ 1/Tests/Tests.xcodeproj -scheme Tests
17-
- xcodebuild test -project ./Bloom\ Filter/Tests/Tests.xcodeproj -scheme Tests
18-
- xcodebuild test -project ./Breadth-First\ Search/Tests/Tests.xcodeproj -scheme Tests
19-
- xcodebuild test -project ./Bucket\ Sort/Tests/Tests.xcodeproj -scheme Tests
20-
- xcodebuild test -project ./Heap/Tests/Tests.xcodeproj -scheme Tests
21-
- xcodebuild test -project ./Heap\ Sort/Tests/Tests.xcodeproj -scheme Tests
22-
- xcodebuild test -project ./Insertion\ Sort/Tests/Tests.xcodeproj -scheme Tests
23-
- xcodebuild test -project ./K-Means/Tests/Tests.xcodeproj -scheme Tests
24-
- xcodebuild test -project ./Linked\ List/Tests/Tests.xcodeproj -scheme Tests
25-
- xcodebuild test -project ./Longest\ Common\ Subsequence/Tests/Tests.xcodeproj -scheme Tests
26-
- xcodebuild test -project ./Priority\ Queue/Tests/Tests.xcodeproj -scheme Tests
27-
- xcodebuild test -project ./Queue/Tests/Tests.xcodeproj -scheme Tests
28-
- xcodebuild test -project ./Quicksort/Tests/Tests.xcodeproj -scheme Tests
29-
- xcodebuild test -project ./Run-Length\ Encoding/Tests/Tests.xcodeproj -scheme Tests
30-
- xcodebuild test -project ./Select\ Minimum\ Maximum/Tests/Tests.xcodeproj -scheme Tests
31-
- xcodebuild test -project ./Selection\ Sort/Tests/Tests.xcodeproj -scheme Tests
32-
- xcodebuild test -project ./Shell\ Sort/Tests/Tests.xcodeproj -scheme Tests
33-
- xcodebuild test -project ./Single-Source\ Shortest\ Paths\ \(Weighted\)/SSSP.xcodeproj -scheme SSSPTests
34-
- xcodebuild test -project ./Stack/Tests/Tests.xcodeproj -scheme Tests
11+
- xctool test -project ./All-Pairs\ Shortest\ Paths/APSP/APSP.xcodeproj -scheme APSPTests
12+
- xctool test -project ./Array2D/Tests/Tests.xcodeproj -scheme Tests
13+
- xctool test -project ./AVL\ Tree/Tests/Tests.xcodeproj -scheme Tests
14+
- xctool test -project ./Binary\ Search/Tests/Tests.xcodeproj -scheme Tests
15+
- xctool test -project ./Binary\ Search\ Tree/Solution\ 1/Tests/Tests.xcodeproj -scheme Tests
16+
- xctool test -project ./Bloom\ Filter/Tests/Tests.xcodeproj -scheme Tests
17+
- xctool test -project ./Bounded\ Priority\ Queue/Tests/Tests.xcodeproj -scheme Tests
18+
- xctool test -project ./Breadth-First\ Search/Tests/Tests.xcodeproj -scheme Tests
19+
- xctool test -project ./Bucket\ Sort/Tests/Tests.xcodeproj -scheme Tests
20+
- xctool test -project ./Counting\ Sort/Tests/Tests.xcodeproj -scheme Tests
21+
- xctool test -project ./Depth-First\ Search/Tests/Tests.xcodeproj -scheme Tests
22+
- xctool test -project ./Graph/Graph.xcodeproj -scheme GraphTests
23+
- xctool test -project ./Heap/Tests/Tests.xcodeproj -scheme Tests
24+
- xctool test -project ./Heap\ Sort/Tests/Tests.xcodeproj -scheme Tests
25+
- xctool test -project ./Insertion\ Sort/Tests/Tests.xcodeproj -scheme Tests
26+
- xctool test -project ./K-Means/Tests/Tests.xcodeproj -scheme Tests
27+
- xctool test -project ./Linked\ List/Tests/Tests.xcodeproj -scheme Tests
28+
- xctool test -project ./Longest\ Common\ Subsequence/Tests/Tests.xcodeproj -scheme Tests
29+
- xctool test -project ./Minimum\ Spanning\ Tree\ \(Unweighted\)/Tests/Tests.xcodeproj -scheme Tests
30+
- xctool test -project ./Priority\ Queue/Tests/Tests.xcodeproj -scheme Tests
31+
- xctool test -project ./Queue/Tests/Tests.xcodeproj -scheme Tests
32+
- xctool test -project ./Quicksort/Tests/Tests.xcodeproj -scheme Tests
33+
- xctool test -project ./Run-Length\ Encoding/Tests/Tests.xcodeproj -scheme Tests
34+
- xctool test -project ./Select\ Minimum\ Maximum/Tests/Tests.xcodeproj -scheme Tests
35+
- xctool test -project ./Selection\ Sort/Tests/Tests.xcodeproj -scheme Tests
36+
- xctool test -project ./Shell\ Sort/Tests/Tests.xcodeproj -scheme Tests
37+
- xctool test -project ./Shortest\ Path\ \(Unweighted\)/Tests/Tests.xcodeproj -scheme Tests
38+
- xctool test -project ./Single-Source\ Shortest\ Paths\ \(Weighted\)/SSSP.xcodeproj -scheme SSSPTests
39+
- xctool test -project ./Stack/Tests/Tests.xcodeproj -scheme Tests
40+
- xctool test -project ./Topological\ Sort/Tests/Tests.xcodeproj -scheme Tests

AVL Tree/Tests/Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
18+
BuildableName = "Tests.xctest"
19+
BlueprintName = "Tests"
20+
ReferencedContainer = "container:Tests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
59+
BuildableName = "Tests.xctest"
60+
BlueprintName = "Tests"
61+
ReferencedContainer = "container:Tests.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
77+
BuildableName = "Tests.xctest"
78+
BlueprintName = "Tests"
79+
ReferencedContainer = "container:Tests.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

All-Pairs Shortest Paths/APSP/APSP.xcodeproj/xcshareddata/xcschemes/APSPTests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "493D8DDF1CDD2A1C0089795A"
18+
BuildableName = "APSPTests.xctest"
19+
BlueprintName = "APSPTests"
20+
ReferencedContainer = "container:APSP.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "493D8DDF1CDD2A1C0089795A"
59+
BuildableName = "APSPTests.xctest"
60+
BlueprintName = "APSPTests"
61+
ReferencedContainer = "container:APSP.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "493D8DDF1CDD2A1C0089795A"
77+
BuildableName = "APSPTests.xctest"
78+
BlueprintName = "APSPTests"
79+
ReferencedContainer = "container:APSP.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

Array2D/Tests/Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
18+
BuildableName = "Tests.xctest"
19+
BlueprintName = "Tests"
20+
ReferencedContainer = "container:Tests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
59+
BuildableName = "Tests.xctest"
60+
BlueprintName = "Tests"
61+
ReferencedContainer = "container:Tests.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
77+
BuildableName = "Tests.xctest"
78+
BlueprintName = "Tests"
79+
ReferencedContainer = "container:Tests.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

Binary Search Tree/Solution 1/Tests/Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
18+
BuildableName = "Tests.xctest"
19+
BlueprintName = "Tests"
20+
ReferencedContainer = "container:Tests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
59+
BuildableName = "Tests.xctest"
60+
BlueprintName = "Tests"
61+
ReferencedContainer = "container:Tests.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
77+
BuildableName = "Tests.xctest"
78+
BlueprintName = "Tests"
79+
ReferencedContainer = "container:Tests.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

Binary Search/Tests/Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
18+
BuildableName = "Tests.xctest"
19+
BlueprintName = "Tests"
20+
ReferencedContainer = "container:Tests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
59+
BuildableName = "Tests.xctest"
60+
BlueprintName = "Tests"
61+
ReferencedContainer = "container:Tests.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
77+
BuildableName = "Tests.xctest"
78+
BlueprintName = "Tests"
79+
ReferencedContainer = "container:Tests.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

Bloom Filter/Tests/Tests.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme

+34
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
18+
BuildableName = "Tests.xctest"
19+
BlueprintName = "Tests"
20+
ReferencedContainer = "container:Tests.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
824
</BuildAction>
925
<TestAction
1026
buildConfiguration = "Debug"
@@ -36,6 +52,15 @@
3652
debugDocumentVersioning = "YES"
3753
debugServiceExtension = "internal"
3854
allowLocationSimulation = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
59+
BuildableName = "Tests.xctest"
60+
BlueprintName = "Tests"
61+
ReferencedContainer = "container:Tests.xcodeproj">
62+
</BuildableReference>
63+
</MacroExpansion>
3964
<AdditionalOptions>
4065
</AdditionalOptions>
4166
</LaunchAction>
@@ -45,6 +70,15 @@
4570
savedToolIdentifier = ""
4671
useCustomWorkingDirectory = "NO"
4772
debugDocumentVersioning = "YES">
73+
<MacroExpansion>
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "7B2BBC7F1C779D720067B71D"
77+
BuildableName = "Tests.xctest"
78+
BlueprintName = "Tests"
79+
ReferencedContainer = "container:Tests.xcodeproj">
80+
</BuildableReference>
81+
</MacroExpansion>
4882
</ProfileAction>
4983
<AnalyzeAction
5084
buildConfiguration = "Debug">

0 commit comments

Comments
 (0)