Skip to content

Commit d094246

Browse files
committed
Merge branch 'release/1.0.0-CI'
2 parents 88cb062 + c089e20 commit d094246

File tree

11 files changed

+654
-21
lines changed

11 files changed

+654
-21
lines changed

.travis.yml

Lines changed: 74 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,79 @@ branches:
55
- /^hotfix.*$/
66
- /^feature.*$/
77

8-
notifications:
9-
email:
10-
on_success: change
11-
on_failure: always
12-
138
language: swift
9+
osx_image: xcode11.2
10+
sudo: false
11+
12+
xcode_project: AGString.xcodeproj
13+
14+
xcode_scheme:
15+
- AGString
16+
17+
18+
env:
19+
- CACHE_NAME=iOS PLATFORM=iOS
20+
- CACHE_NAME=macOS PLATFORM=macOS
21+
- CACHE_NAME=tvOS PLATFORM=tvOS
22+
- CACHE_NAME=watchOS PLATFORM=watchOS
23+
24+
before_script:
25+
- export RUN_TESTS="YES"
26+
- export SCHEME="${TRAVIS_XCODE_SCHEME}-${PLATFORM}"
27+
- echo "TRAVIS_XCODE_SCHEME ${TRAVIS_XCODE_SCHEME} PLATFORM ${PLATFORM}"
28+
29+
- case "${PLATFORM}" in
30+
"iOS")
31+
export SDK="iphonesimulator13.2";
32+
export DESTINATION="platformplatform=iOS Simulator,OS=13.2,name=iPhone 8";
33+
;;
34+
"macOS")
35+
export SDK="macosx10.15";
36+
export DESTINATION="platform=macOS,arch=x86_64";
37+
;;
38+
"tvOS")
39+
export SDK="appletvsimulator13.2";
40+
export DESTINATION="platform=tvOS Simulator,OS=13.2,name=Apple TV";
41+
;;
42+
"watchOS")
43+
export SDK="watchsimulator6.1";
44+
export DESTINATION="platform=watchOS Simulator,OS=6.1,name=Apple Watch Series 5 - 44mm";
45+
;;
46+
esac
47+
48+
script:
49+
- set -o pipefail
50+
- xcodebuild -version
51+
- xcodebuild -showsdks
52+
53+
- echo "TRAVIS_XCODE_PROJECT ${TRAVIS_XCODE_PROJECT}"
54+
# - xcodebuild clean -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" | xcpretty
55+
56+
# Build Framework in Debug and Run Tests if specified
57+
58+
- echo "BUILD FOR DEBUG"
59+
# - if [ ${RUN_TESTS} == "YES" ]; then
60+
# xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
61+
# else
62+
# xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
63+
# fi
64+
65+
# - xcodebuild clean -project "$TRAVIS_XCODE_PROJECT" -scheme "$SCHEME" | xcpretty
66+
67+
# Build Framework in Release and Run Tests if specified
68+
- echo "BUILD FOR RELEASE"
69+
70+
- echo "SDK ${SDK}"
71+
- echo "DESTINATION ${DESTINATION}"
72+
# - if [ ${RUN_TESTS} == "YES" ]; then
73+
# xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
74+
# else
75+
# xcodebuild -project "${TRAVIS_XCODE_PROJECT}" -scheme "${SCHEME}" -sdk "${SDK}" -destination "${DESTINATION}" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
76+
# fi
77+
78+
# # Run `pod lib lint` if specified
79+
# - if [ $POD_LINT == "YES" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
80+
# pod repo update > /dev/null;
81+
# travis_wait 60 pod lib lint --allow-warnings;
82+
# fi
1483

15-
stages:
16-
- Tests
17-
- Compatibility
18-
19-
jobs:
20-
include:
21-
- stage: Tests
22-
os: osx
23-
osx_image: xcode10.2
24-
name: Unit Tests
25-
script: fastlane ios tests
26-
- stage: Compatibility
27-
os: osx
28-
osx_image: xcode10.2
29-
name: DependencyManager compatibility
30-
script: fastlane ios compatibilityTests

AGString.xcodeproj/project.pbxproj

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
2FBE39ED2377C7B700D65251 /* AGRegex.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB3A5A1236EF1B30041D167 /* AGRegex.swift */; };
11+
2FBE39EE2377C7B700D65251 /* AGMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777323701C86007DCFB6 /* AGMatch.swift */; };
12+
2FBE39EF2377C7B700D65251 /* AGMatchIterator.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDA016123703F820001AF7C /* AGMatchIterator.swift */; };
13+
2FBE39F02377C7B700D65251 /* String+NSRange.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF6C86D12372D77B004C83A0 /* String+NSRange.swift */; };
14+
2FBE39F12377C7B700D65251 /* StringIndex.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF5EFC82236EF301005134D1 /* StringIndex.swift */; };
15+
2FBE39F22377C7B700D65251 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF4F190B236F126000A0CD30 /* Utility.swift */; };
16+
2FBE39F32377C7C000D65251 /* AGRegex.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB3A5A1236EF1B30041D167 /* AGRegex.swift */; };
17+
2FBE39F42377C7C000D65251 /* AGMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777323701C86007DCFB6 /* AGMatch.swift */; };
18+
2FBE39F52377C7C000D65251 /* AGMatchIterator.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDA016123703F820001AF7C /* AGMatchIterator.swift */; };
19+
2FBE39F62377C7C000D65251 /* String+NSRange.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF6C86D12372D77B004C83A0 /* String+NSRange.swift */; };
20+
2FBE39F72377C7C000D65251 /* StringIndex.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF5EFC82236EF301005134D1 /* StringIndex.swift */; };
21+
2FBE39F82377C7C000D65251 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF4F190B236F126000A0CD30 /* Utility.swift */; };
22+
2FBE39F92377C7C600D65251 /* AGRegex.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB3A5A1236EF1B30041D167 /* AGRegex.swift */; };
23+
2FBE39FA2377C7C600D65251 /* AGMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777323701C86007DCFB6 /* AGMatch.swift */; };
24+
2FBE39FB2377C7C600D65251 /* AGMatchIterator.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDA016123703F820001AF7C /* AGMatchIterator.swift */; };
25+
2FBE39FC2377C7C600D65251 /* String+NSRange.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF6C86D12372D77B004C83A0 /* String+NSRange.swift */; };
26+
2FBE39FD2377C7C600D65251 /* StringIndex.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF5EFC82236EF301005134D1 /* StringIndex.swift */; };
27+
2FBE39FE2377C7C600D65251 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF4F190B236F126000A0CD30 /* Utility.swift */; };
1028
3D9C42A222745900000A6585 /* AGString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D9C42A122745900000A6585 /* AGString.swift */; };
1129
3D9C42B1227459C1000A6585 /* AGString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D9C42A122745900000A6585 /* AGString.swift */; };
1230
3D9C42BF227459F6000A6585 /* AGString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D9C42A122745900000A6585 /* AGString.swift */; };
@@ -23,9 +41,15 @@
2341
3D9C432E2274629C000A6585 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3D9C432C2274629C000A6585 /* LaunchScreen.storyboard */; };
2442
3D9C433422746323000A6585 /* AGString.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D9C429022745894000A6585 /* AGString.framework */; };
2543
3D9C433522746323000A6585 /* AGString.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3D9C429022745894000A6585 /* AGString.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
44+
BD02777423701C86007DCFB6 /* AGMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777323701C86007DCFB6 /* AGMatch.swift */; };
45+
BD02777723701DAE007DCFB6 /* AGRegexTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777523701DA2007DCFB6 /* AGRegexTest.swift */; };
46+
BD02777823701DB4007DCFB6 /* AGRegexTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777523701DA2007DCFB6 /* AGRegexTest.swift */; };
47+
BD02777923701DB7007DCFB6 /* AGRegexTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02777523701DA2007DCFB6 /* AGRegexTest.swift */; };
2648
BDB3A5A2236EF1B30041D167 /* AGRegex.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDB3A5A1236EF1B30041D167 /* AGRegex.swift */; };
49+
BDDA016223703F820001AF7C /* AGMatchIterator.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDDA016123703F820001AF7C /* AGMatchIterator.swift */; };
2750
FF4F190C236F126000A0CD30 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF4F190B236F126000A0CD30 /* Utility.swift */; };
2851
FF5EFC83236EF301005134D1 /* StringIndex.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF5EFC82236EF301005134D1 /* StringIndex.swift */; };
52+
FF6C86D22372D77B004C83A0 /* String+NSRange.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF6C86D12372D77B004C83A0 /* String+NSRange.swift */; };
2953
/* End PBXBuildFile section */
3054

3155
/* Begin PBXContainerItemProxy section */
@@ -102,9 +126,13 @@
102126
3D9C432F2274629C000A6585 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
103127
3DB91AC4229AC263002668DA /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .travis.yml; sourceTree = SOURCE_ROOT; };
104128
3DF6F6282315616D00706C4E /* main.yml */ = {isa = PBXFileReference; lastKnownFileType = text; name = main.yml; path = .github/workflows/main.yml; sourceTree = SOURCE_ROOT; };
129+
BD02777323701C86007DCFB6 /* AGMatch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AGMatch.swift; sourceTree = "<group>"; };
130+
BD02777523701DA2007DCFB6 /* AGRegexTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AGRegexTest.swift; sourceTree = "<group>"; };
105131
BDB3A5A1236EF1B30041D167 /* AGRegex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AGRegex.swift; sourceTree = "<group>"; };
132+
BDDA016123703F820001AF7C /* AGMatchIterator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AGMatchIterator.swift; sourceTree = "<group>"; };
106133
FF4F190B236F126000A0CD30 /* Utility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utility.swift; sourceTree = "<group>"; };
107134
FF5EFC82236EF301005134D1 /* StringIndex.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StringIndex.swift; sourceTree = "<group>"; };
135+
FF6C86D12372D77B004C83A0 /* String+NSRange.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+NSRange.swift"; sourceTree = "<group>"; };
108136
/* End PBXFileReference section */
109137

110138
/* Begin PBXFrameworksBuildPhase section */
@@ -230,6 +258,7 @@
230258
children = (
231259
3D9C42EC22745FDA000A6585 /* LinuxMain.swift */,
232260
3D9C42D722745CDE000A6585 /* AGStringTests.swift */,
261+
BD02777523701DA2007DCFB6 /* AGRegexTest.swift */,
233262
);
234263
path = Tests;
235264
sourceTree = "<group>";
@@ -268,6 +297,9 @@
268297
isa = PBXGroup;
269298
children = (
270299
BDB3A5A1236EF1B30041D167 /* AGRegex.swift */,
300+
BD02777323701C86007DCFB6 /* AGMatch.swift */,
301+
BDDA016123703F820001AF7C /* AGMatchIterator.swift */,
302+
FF6C86D12372D77B004C83A0 /* String+NSRange.swift */,
271303
);
272304
path = Regex;
273305
sourceTree = "<group>";
@@ -659,8 +691,11 @@
659691
buildActionMask = 2147483647;
660692
files = (
661693
FF4F190C236F126000A0CD30 /* Utility.swift in Sources */,
694+
BDDA016223703F820001AF7C /* AGMatchIterator.swift in Sources */,
662695
FF5EFC83236EF301005134D1 /* StringIndex.swift in Sources */,
696+
BD02777423701C86007DCFB6 /* AGMatch.swift in Sources */,
663697
3D9C42A222745900000A6585 /* AGString.swift in Sources */,
698+
FF6C86D22372D77B004C83A0 /* String+NSRange.swift in Sources */,
664699
BDB3A5A2236EF1B30041D167 /* AGRegex.swift in Sources */,
665700
);
666701
runOnlyForDeploymentPostprocessing = 0;
@@ -669,6 +704,12 @@
669704
isa = PBXSourcesBuildPhase;
670705
buildActionMask = 2147483647;
671706
files = (
707+
2FBE39ED2377C7B700D65251 /* AGRegex.swift in Sources */,
708+
2FBE39EE2377C7B700D65251 /* AGMatch.swift in Sources */,
709+
2FBE39EF2377C7B700D65251 /* AGMatchIterator.swift in Sources */,
710+
2FBE39F02377C7B700D65251 /* String+NSRange.swift in Sources */,
711+
2FBE39F12377C7B700D65251 /* StringIndex.swift in Sources */,
712+
2FBE39F22377C7B700D65251 /* Utility.swift in Sources */,
672713
3D9C42B1227459C1000A6585 /* AGString.swift in Sources */,
673714
);
674715
runOnlyForDeploymentPostprocessing = 0;
@@ -677,6 +718,12 @@
677718
isa = PBXSourcesBuildPhase;
678719
buildActionMask = 2147483647;
679720
files = (
721+
2FBE39F32377C7C000D65251 /* AGRegex.swift in Sources */,
722+
2FBE39F42377C7C000D65251 /* AGMatch.swift in Sources */,
723+
2FBE39F52377C7C000D65251 /* AGMatchIterator.swift in Sources */,
724+
2FBE39F62377C7C000D65251 /* String+NSRange.swift in Sources */,
725+
2FBE39F72377C7C000D65251 /* StringIndex.swift in Sources */,
726+
2FBE39F82377C7C000D65251 /* Utility.swift in Sources */,
680727
3D9C42BF227459F6000A6585 /* AGString.swift in Sources */,
681728
);
682729
runOnlyForDeploymentPostprocessing = 0;
@@ -685,6 +732,12 @@
685732
isa = PBXSourcesBuildPhase;
686733
buildActionMask = 2147483647;
687734
files = (
735+
2FBE39F92377C7C600D65251 /* AGRegex.swift in Sources */,
736+
2FBE39FA2377C7C600D65251 /* AGMatch.swift in Sources */,
737+
2FBE39FB2377C7C600D65251 /* AGMatchIterator.swift in Sources */,
738+
2FBE39FC2377C7C600D65251 /* String+NSRange.swift in Sources */,
739+
2FBE39FD2377C7C600D65251 /* StringIndex.swift in Sources */,
740+
2FBE39FE2377C7C600D65251 /* Utility.swift in Sources */,
688741
3D9C42CD22745A28000A6585 /* AGString.swift in Sources */,
689742
);
690743
runOnlyForDeploymentPostprocessing = 0;
@@ -693,6 +746,7 @@
693746
isa = PBXSourcesBuildPhase;
694747
buildActionMask = 2147483647;
695748
files = (
749+
BD02777723701DAE007DCFB6 /* AGRegexTest.swift in Sources */,
696750
3D9C42FC22746078000A6585 /* AGStringTests.swift in Sources */,
697751
);
698752
runOnlyForDeploymentPostprocessing = 0;
@@ -701,6 +755,7 @@
701755
isa = PBXSourcesBuildPhase;
702756
buildActionMask = 2147483647;
703757
files = (
758+
BD02777823701DB4007DCFB6 /* AGRegexTest.swift in Sources */,
704759
3D9C430C22746131000A6585 /* AGStringTests.swift in Sources */,
705760
);
706761
runOnlyForDeploymentPostprocessing = 0;
@@ -709,6 +764,7 @@
709764
isa = PBXSourcesBuildPhase;
710765
buildActionMask = 2147483647;
711766
files = (
767+
BD02777923701DB7007DCFB6 /* AGRegexTest.swift in Sources */,
712768
3D9C431C227461AF000A6585 /* AGStringTests.swift in Sources */,
713769
);
714770
runOnlyForDeploymentPostprocessing = 0;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>classNames</key>
6+
<dict>
7+
<key>AGStringTests</key>
8+
<dict>
9+
<key>testLtrim()</key>
10+
<dict>
11+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
12+
<dict>
13+
<key>baselineAverage</key>
14+
<real>0.000151</real>
15+
<key>baselineIntegrationDisplayName</key>
16+
<string>Local Baseline</string>
17+
</dict>
18+
</dict>
19+
<key>testOccurence()</key>
20+
<dict>
21+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
22+
<dict>
23+
<key>baselineAverage</key>
24+
<real>0.0128</real>
25+
<key>baselineIntegrationDisplayName</key>
26+
<string>Local Baseline</string>
27+
</dict>
28+
</dict>
29+
<key>testRtrim()</key>
30+
<dict>
31+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
32+
<dict>
33+
<key>baselineAverage</key>
34+
<real>0.000108</real>
35+
<key>baselineIntegrationDisplayName</key>
36+
<string>Local Baseline</string>
37+
</dict>
38+
</dict>
39+
<key>testTrim()</key>
40+
<dict>
41+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
42+
<dict>
43+
<key>baselineAverage</key>
44+
<real>4.48e-05</real>
45+
<key>baselineIntegrationDisplayName</key>
46+
<string>Local Baseline</string>
47+
</dict>
48+
</dict>
49+
<key>testltrim()</key>
50+
<dict>
51+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
52+
<dict>
53+
<key>baselineAverage</key>
54+
<real>0.00017564</real>
55+
<key>baselineIntegrationDisplayName</key>
56+
<string>Local Baseline</string>
57+
</dict>
58+
</dict>
59+
</dict>
60+
</dict>
61+
</dict>
62+
</plist>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>runDestinationsByUUID</key>
6+
<dict>
7+
<key>3385FEE0-D0B1-4658-A4FC-4F5EA707274C</key>
8+
<dict>
9+
<key>localComputer</key>
10+
<dict>
11+
<key>busSpeedInMHz</key>
12+
<integer>100</integer>
13+
<key>cpuCount</key>
14+
<integer>1</integer>
15+
<key>cpuKind</key>
16+
<string>Quad-Core Intel Core i7</string>
17+
<key>cpuSpeedInMHz</key>
18+
<integer>2200</integer>
19+
<key>logicalCPUCoresPerPackage</key>
20+
<integer>8</integer>
21+
<key>modelCode</key>
22+
<string>MacBookPro11,2</string>
23+
<key>physicalCPUCoresPerPackage</key>
24+
<integer>4</integer>
25+
<key>platformIdentifier</key>
26+
<string>com.apple.platform.macosx</string>
27+
</dict>
28+
<key>targetArchitecture</key>
29+
<string>x86_64</string>
30+
<key>targetDevice</key>
31+
<dict>
32+
<key>modelCode</key>
33+
<string>iPhone12,5</string>
34+
<key>platformIdentifier</key>
35+
<string>com.apple.platform.iphonesimulator</string>
36+
</dict>
37+
</dict>
38+
</dict>
39+
</dict>
40+
</plist>

0 commit comments

Comments
 (0)