Skip to content

Commit 561b9fe

Browse files
authored
Basic CircleCI config. (#3)
1 parent 6ba9acc commit 561b9fe

File tree

3 files changed

+44
-14
lines changed

3 files changed

+44
-14
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2.1
2+
jobs:
3+
build:
4+
shell: /bin/bash --login -eo pipefail
5+
6+
macos:
7+
xcode: '11.4.0'
8+
9+
steps:
10+
- checkout
11+
12+
- run:
13+
name: Setup for builds
14+
command: |
15+
mkdir -p 'test-results'
16+
mkdir -p 'artifacts'
17+
18+
- run:
19+
name: Test macOS
20+
command: xcodebuild test -scheme 'LDSwiftEventSource macOS' -destination 'platform=macOS' | tee 'artifacts/raw-logs-macOS.txt' | xcpretty -r junit -o 'test-results/platform-macOS/junit.xml'
21+
22+
- run:
23+
name: Test iOS
24+
command: xcodebuild test -scheme 'LDSwiftEventSource iOS' -destination 'platform=iOS Simulator,name=iPhone 8,OS=12.2' CODE_SIGN_IDENTITY= | tee 'artifacts/raw-logs-iOS.txt' | xcpretty -r junit -o 'test-results/platform-iOS/junit.xml'
25+
26+
- run:
27+
name: Test tvOS
28+
command: xcodebuild test -scheme 'LDSwiftEventSource tvOS' -destination 'platform=tvOS Simulator,name=Apple TV' | tee 'artifacts/raw-logs-tvOS.txt' | xcpretty -r junit -o 'test-results/platform-tvOS/junit.xml'
29+
30+
- run:
31+
name: Build watchOS # No unit testing on watchOS
32+
command: xcodebuild build -scheme 'LDSwiftEventSource watchOS' | tee 'artifacts/raw-logs-watchOS.txt' | xcpretty
33+
34+
- store_test_results:
35+
path: test-results
36+
37+
- store_artifacts:
38+
path: artifacts

LDSwiftEventSource.xcodeproj/project.pbxproj

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
B49B5E67246684B9008BF867 /* LDSwiftEventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = B49B5E65246684B9008BF867 /* LDSwiftEventSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
3838
B49B5E68246684B9008BF867 /* LDSwiftEventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = B49B5E65246684B9008BF867 /* LDSwiftEventSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
3939
B49B5E69246684B9008BF867 /* LDSwiftEventSource.h in Headers */ = {isa = PBXBuildFile; fileRef = B49B5E65246684B9008BF867 /* LDSwiftEventSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
40+
B49B5E72246C4796008BF867 /* LDSwiftEventSource.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B49B5DFC24667D41008BF867 /* LDSwiftEventSource.framework */; };
4041
/* End PBXBuildFile section */
4142

4243
/* Begin PBXContainerItemProxy section */
@@ -115,6 +116,7 @@
115116
isa = PBXFrameworksBuildPhase;
116117
buildActionMask = 2147483647;
117118
files = (
119+
B49B5E72246C4796008BF867 /* LDSwiftEventSource.framework in Frameworks */,
118120
);
119121
runOnlyForDeploymentPostprocessing = 0;
120122
};
@@ -712,7 +714,6 @@
712714
DYLIB_CURRENT_VERSION = 1;
713715
DYLIB_INSTALL_NAME_BASE = "@rpath";
714716
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
715-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
716717
LD_RUNPATH_SEARCH_PATHS = (
717718
"$(inherited)",
718719
"@executable_path/Frameworks",
@@ -737,7 +738,6 @@
737738
DYLIB_CURRENT_VERSION = 1;
738739
DYLIB_INSTALL_NAME_BASE = "@rpath";
739740
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
740-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
741741
LD_RUNPATH_SEARCH_PATHS = (
742742
"$(inherited)",
743743
"@executable_path/Frameworks",
@@ -759,7 +759,6 @@
759759
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
760760
CODE_SIGN_STYLE = Automatic;
761761
INFOPLIST_FILE = "$(inherited)";
762-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
763762
LD_RUNPATH_SEARCH_PATHS = (
764763
"$(inherited)",
765764
"@executable_path/Frameworks",
@@ -779,7 +778,6 @@
779778
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
780779
CODE_SIGN_STYLE = Automatic;
781780
INFOPLIST_FILE = "$(inherited)";
782-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
783781
LD_RUNPATH_SEARCH_PATHS = (
784782
"$(inherited)",
785783
"@executable_path/Frameworks",
@@ -811,7 +809,6 @@
811809
"@executable_path/../Frameworks",
812810
"@loader_path/Frameworks",
813811
);
814-
MACOSX_DEPLOYMENT_TARGET = 10.12;
815812
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
816813
PRODUCT_NAME = "$(inherited)";
817814
SKIP_INSTALL = YES;
@@ -836,7 +833,6 @@
836833
"@executable_path/../Frameworks",
837834
"@loader_path/Frameworks",
838835
);
839-
MACOSX_DEPLOYMENT_TARGET = 10.12;
840836
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
841837
PRODUCT_NAME = "$(inherited)";
842838
SKIP_INSTALL = YES;
@@ -856,7 +852,6 @@
856852
"@executable_path/../Frameworks",
857853
"@loader_path/../Frameworks",
858854
);
859-
MACOSX_DEPLOYMENT_TARGET = 10.15;
860855
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.LDSwiftEventSource-macOSTests";
861856
PRODUCT_NAME = "$(TARGET_NAME)";
862857
SWIFT_VERSION = 5.0;
@@ -875,7 +870,6 @@
875870
"@executable_path/../Frameworks",
876871
"@loader_path/../Frameworks",
877872
);
878-
MACOSX_DEPLOYMENT_TARGET = 10.15;
879873
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.LDSwiftEventSource-macOSTests";
880874
PRODUCT_NAME = "$(TARGET_NAME)";
881875
SWIFT_VERSION = 5.0;
@@ -904,7 +898,6 @@
904898
SKIP_INSTALL = YES;
905899
SWIFT_VERSION = 5.0;
906900
TARGETED_DEVICE_FAMILY = 3;
907-
TVOS_DEPLOYMENT_TARGET = 10.0;
908901
};
909902
name = Debug;
910903
};
@@ -930,7 +923,6 @@
930923
SKIP_INSTALL = YES;
931924
SWIFT_VERSION = 5.0;
932925
TARGETED_DEVICE_FAMILY = 3;
933-
TVOS_DEPLOYMENT_TARGET = 10.0;
934926
VALIDATE_PRODUCT = YES;
935927
};
936928
name = Release;
@@ -951,7 +943,6 @@
951943
SDKROOT = appletvos;
952944
SWIFT_VERSION = 5.0;
953945
TARGETED_DEVICE_FAMILY = 3;
954-
TVOS_DEPLOYMENT_TARGET = 13.4;
955946
};
956947
name = Debug;
957948
};
@@ -971,7 +962,6 @@
971962
SDKROOT = appletvos;
972963
SWIFT_VERSION = 5.0;
973964
TARGETED_DEVICE_FAMILY = 3;
974-
TVOS_DEPLOYMENT_TARGET = 13.4;
975965
VALIDATE_PRODUCT = YES;
976966
};
977967
name = Release;
@@ -998,7 +988,6 @@
998988
SKIP_INSTALL = YES;
999989
SWIFT_VERSION = 5.0;
1000990
TARGETED_DEVICE_FAMILY = 4;
1001-
WATCHOS_DEPLOYMENT_TARGET = 3.0;
1002991
};
1003992
name = Debug;
1004993
};
@@ -1025,7 +1014,6 @@
10251014
SWIFT_VERSION = 5.0;
10261015
TARGETED_DEVICE_FAMILY = 4;
10271016
VALIDATE_PRODUCT = YES;
1028-
WATCHOS_DEPLOYMENT_TARGET = 3.0;
10291017
};
10301018
name = Release;
10311019
};

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# LDSwiftEventSource
2+
** Server-Sent Events for iOS, watchOS, tvOS and macOS
3+
4+
[![LaunchDarkly](https://circleci.com/gh/launchdarkly/swift-eventsource.svg?style=shield)](https://circleci.com/gh/launchdarkly/swift-eventsource)
5+
26

37
Swift EventSource implementation originally written to replace a [LaunchDarkly fork](https://github.com/launchdarkly/ios-eventsource) of an [Objective-C implementation](https://github.com/neilco/ios-eventsource) for use in the [LaunchDarkly iOS (Swift) SDK](https://github.com/launchdarkly/ios-client-sdk).

0 commit comments

Comments
 (0)