Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 69019d8

Browse files
committed
Add tests and move files into source folder
1 parent 7e767b4 commit 69019d8

File tree

6 files changed

+41
-27
lines changed

6 files changed

+41
-27
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
*.xcworkspace
66
xcuserdata
77
Documentation
8+
DerivedData
9+
build

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
language: objective-c
2+
script: bundle exec rake test --trace

Rakefile

+21-14
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
1-
header_path = '*.h'
1+
desc 'Run the tests'
2+
task :test do
3+
system 'xcodebuild -project Tests/SSKeychain.xcodeproj -scheme SSKeychainTests TEST_AFTER_BUILD=YES'
4+
system 'xcodebuild -project Tests/SSKeychain.xcodeproj -scheme SSKeychainTestsARC TEST_AFTER_BUILD=YES'
5+
end
26

3-
appledoc_options = [
4-
'--output Documentation',
5-
'--project-name SSKeychain',
6-
'--project-company \'Sam Soffes\'',
7-
'--company-id com.samsoffes',
8-
"--project-version #{`cat VERSION`.strip}",
9-
'--keep-intermediate-files',
10-
'--create-html',
11-
'--templates ~/Library/Application\ Support/appledoc/Templates/',
12-
'--no-repeat-first-par',
13-
'--verbose']
7+
task default: :test
148

159
namespace :docs do
10+
header_path = 'SSKeychain/*.h'
11+
appledoc_options = [
12+
'--output Documentation',
13+
'--project-name SSKeychain',
14+
'--project-company \'Sam Soffes\'',
15+
'--company-id com.samsoffes',
16+
"--project-version #{`cat VERSION`.strip}",
17+
'--keep-intermediate-files',
18+
'--create-html',
19+
'--templates ~/Library/Application\ Support/appledoc/Templates/',
20+
'--no-repeat-first-par',
21+
'--verbose']
22+
1623
desc 'Clean docs'
1724
task :clean do
1825
`rm -rf Documentation`
1926
end
20-
27+
2128
desc 'Install docs'
2229
task :install => [:'docs:clean'] do
2330
`appledoc #{appledoc_options.join(' ')} --create-docset --install-docset #{header_path}`
2431
end
25-
32+
2633
desc 'Publish docs'
2734
task :publish => [:'docs:clean'] do
2835
extra_options = [
File renamed without changes.
File renamed without changes.

Tests/SSKeychain.xcodeproj/project.pbxproj

+16-13
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,24 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
21D08CD616B4E1A500F41F3A /* SSKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = 21D08CD516B4E1A500F41F3A /* SSKeychain.m */; };
11+
21D08CDB16B4E20300F41F3A /* SSKeychainTestsARC-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 21D08CDA16B4E20300F41F3A /* SSKeychainTestsARC-Info.plist */; };
12+
21D08CE016B4E2B500F41F3A /* SSKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = 21D08CD516B4E1A500F41F3A /* SSKeychain.m */; };
1013
B2059B5D1559058C003D2FAC /* SSKeychainTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2A5FACE143AC25C000F6011 /* SSKeychainTests.m */; };
11-
B2059B5E1559058C003D2FAC /* SSKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = B25737E1143AC2EC003FACED /* SSKeychain.m */; };
1214
B2059B601559058C003D2FAC /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B25737E4143AC308003FACED /* Security.framework */; };
1315
B2059B611559058C003D2FAC /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2A5FAB1143AC134000F6011 /* SenTestingKit.framework */; };
1416
B2059B621559058C003D2FAC /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2A5FA93143AC133000F6011 /* Cocoa.framework */; };
15-
B25737E2143AC2EC003FACED /* SSKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = B25737E1143AC2EC003FACED /* SSKeychain.m */; };
1617
B25737E5143AC308003FACED /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B25737E4143AC308003FACED /* Security.framework */; };
1718
B2A5FAB2143AC134000F6011 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2A5FAB1143AC134000F6011 /* SenTestingKit.framework */; };
1819
B2A5FAB3143AC134000F6011 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2A5FA93143AC133000F6011 /* Cocoa.framework */; };
1920
B2A5FAD0143AC25C000F6011 /* SSKeychainTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2A5FACE143AC25C000F6011 /* SSKeychainTests.m */; };
2021
/* End PBXBuildFile section */
2122

2223
/* Begin PBXFileReference section */
24+
21D08CD416B4E1A500F41F3A /* SSKeychain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSKeychain.h; sourceTree = "<group>"; };
25+
21D08CD516B4E1A500F41F3A /* SSKeychain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSKeychain.m; sourceTree = "<group>"; };
26+
21D08CDA16B4E20300F41F3A /* SSKeychainTestsARC-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "SSKeychainTestsARC-Info.plist"; sourceTree = SOURCE_ROOT; };
2327
B2059B681559058C003D2FAC /* SSKeychainTestsARC.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SSKeychainTestsARC.octest; sourceTree = BUILT_PRODUCTS_DIR; };
24-
B2059B691559058C003D2FAC /* SSKeychainTestsARC-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "SSKeychainTestsARC-Info.plist"; path = "/Users/samsoffes/Code/sskeychain/Tests/SSKeychainTestsARC-Info.plist"; sourceTree = "<absolute>"; };
25-
B25737E0143AC2EC003FACED /* SSKeychain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SSKeychain.h; path = ../SSKeychain.h; sourceTree = "<group>"; };
26-
B25737E1143AC2EC003FACED /* SSKeychain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SSKeychain.m; path = ../SSKeychain.m; sourceTree = "<group>"; };
2728
B25737E4143AC308003FACED /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
2829
B2A5FA93143AC133000F6011 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
2930
B2A5FA96143AC133000F6011 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@@ -59,19 +60,20 @@
5960
/* End PBXFrameworksBuildPhase section */
6061

6162
/* Begin PBXGroup section */
62-
B25737E3143AC2F4003FACED /* SSKeychain */ = {
63+
21D08CD316B4E1A500F41F3A /* SSKeychain */ = {
6364
isa = PBXGroup;
6465
children = (
65-
B25737E0143AC2EC003FACED /* SSKeychain.h */,
66-
B25737E1143AC2EC003FACED /* SSKeychain.m */,
66+
21D08CD416B4E1A500F41F3A /* SSKeychain.h */,
67+
21D08CD516B4E1A500F41F3A /* SSKeychain.m */,
6768
);
6869
name = SSKeychain;
70+
path = ../SSKeychain;
6971
sourceTree = "<group>";
7072
};
7173
B2A5FA84143AC133000F6011 = {
7274
isa = PBXGroup;
7375
children = (
74-
B25737E3143AC2F4003FACED /* SSKeychain */,
76+
21D08CD316B4E1A500F41F3A /* SSKeychain */,
7577
B2A5FAB6143AC134000F6011 /* SSKeychainTests */,
7678
B2A5FA92143AC133000F6011 /* Frameworks */,
7779
B2A5FA90143AC133000F6011 /* Products */,
@@ -113,7 +115,7 @@
113115
children = (
114116
B2A5FACE143AC25C000F6011 /* SSKeychainTests.m */,
115117
B2A5FACC143AC25C000F6011 /* SSKeychainTests-Info.plist */,
116-
B2059B691559058C003D2FAC /* SSKeychainTestsARC-Info.plist */,
118+
21D08CDA16B4E20300F41F3A /* SSKeychainTestsARC-Info.plist */,
117119
);
118120
path = SSKeychainTests;
119121
sourceTree = "<group>";
@@ -163,7 +165,7 @@
163165
B2A5FA86143AC133000F6011 /* Project object */ = {
164166
isa = PBXProject;
165167
attributes = {
166-
LastUpgradeCheck = 0420;
168+
LastUpgradeCheck = 0450;
167169
ORGANIZATIONNAME = "Sam Soffes";
168170
};
169171
buildConfigurationList = B2A5FA89143AC133000F6011 /* Build configuration list for PBXProject "SSKeychain" */;
@@ -196,6 +198,7 @@
196198
isa = PBXResourcesBuildPhase;
197199
buildActionMask = 2147483647;
198200
files = (
201+
21D08CDB16B4E20300F41F3A /* SSKeychainTestsARC-Info.plist in Resources */,
199202
);
200203
runOnlyForDeploymentPostprocessing = 0;
201204
};
@@ -236,7 +239,7 @@
236239
buildActionMask = 2147483647;
237240
files = (
238241
B2059B5D1559058C003D2FAC /* SSKeychainTests.m in Sources */,
239-
B2059B5E1559058C003D2FAC /* SSKeychain.m in Sources */,
242+
21D08CE016B4E2B500F41F3A /* SSKeychain.m in Sources */,
240243
);
241244
runOnlyForDeploymentPostprocessing = 0;
242245
};
@@ -245,7 +248,7 @@
245248
buildActionMask = 2147483647;
246249
files = (
247250
B2A5FAD0143AC25C000F6011 /* SSKeychainTests.m in Sources */,
248-
B25737E2143AC2EC003FACED /* SSKeychain.m in Sources */,
251+
21D08CD616B4E1A500F41F3A /* SSKeychain.m in Sources */,
249252
);
250253
runOnlyForDeploymentPostprocessing = 0;
251254
};

0 commit comments

Comments
 (0)