Skip to content

Commit ae13c70

Browse files
committed
Bootstrap CI
1 parent 7d7720f commit ae13c70

File tree

4 files changed

+205
-1
lines changed

4 files changed

+205
-1
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
matrix:
2+
include:
3+
- os: linux
4+
android:
5+
components:
6+
- build-tools-23.0.1
7+
- android-23
8+
- os: osx
9+
language: objective-c
10+
osx_image:
11+
- xcode10
12+
- xcode11
13+
xcode_project: ios/RNCallKeep.xcodeproj
14+
xcode_scheme: RNCallKeep
15+
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPhone X

ios/RNCallKeep.xcodeproj/project.pbxproj

Lines changed: 131 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/* Begin PBXBuildFile section */
1010
23DBCD131E13B465003D485F /* RNCallKeep.m in Sources */ = {isa = PBXBuildFile; fileRef = 23DBCD121E13B465003D485F /* RNCallKeep.m */; };
11+
32B7E21C234CE7C800FE38A4 /* RNCallKeepTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B7E21B234CE7C800FE38A4 /* RNCallKeepTest.m */; };
1112
/* End PBXBuildFile section */
1213

1314
/* Begin PBXCopyFilesBuildPhase section */
@@ -26,6 +27,9 @@
2627
234528921E0B88C700D1A033 /* libRNCallKeep.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCallKeep.a; sourceTree = BUILT_PRODUCTS_DIR; };
2728
23DBCD111E13B465003D485F /* RNCallKeep.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCallKeep.h; path = RNCallKeep/RNCallKeep.h; sourceTree = SOURCE_ROOT; };
2829
23DBCD121E13B465003D485F /* RNCallKeep.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCallKeep.m; path = RNCallKeep/RNCallKeep.m; sourceTree = SOURCE_ROOT; };
30+
32B7E219234CE7C800FE38A4 /* RNCallKeepTest.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNCallKeepTest.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
31+
32B7E21B234CE7C800FE38A4 /* RNCallKeepTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNCallKeepTest.m; sourceTree = "<group>"; };
32+
32B7E21D234CE7C800FE38A4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2933
/* End PBXFileReference section */
3034

3135
/* Begin PBXFrameworksBuildPhase section */
@@ -36,13 +40,21 @@
3640
);
3741
runOnlyForDeploymentPostprocessing = 0;
3842
};
43+
32B7E216234CE7C800FE38A4 /* Frameworks */ = {
44+
isa = PBXFrameworksBuildPhase;
45+
buildActionMask = 2147483647;
46+
files = (
47+
);
48+
runOnlyForDeploymentPostprocessing = 0;
49+
};
3950
/* End PBXFrameworksBuildPhase section */
4051

4152
/* Begin PBXGroup section */
4253
234528891E0B88C700D1A033 = {
4354
isa = PBXGroup;
4455
children = (
4556
234528941E0B88C700D1A033 /* RNCallKeep */,
57+
32B7E21A234CE7C800FE38A4 /* RNCallKeepTest */,
4658
234528931E0B88C700D1A033 /* Products */,
4759
);
4860
sourceTree = "<group>";
@@ -51,6 +63,7 @@
5163
isa = PBXGroup;
5264
children = (
5365
234528921E0B88C700D1A033 /* libRNCallKeep.a */,
66+
32B7E219234CE7C800FE38A4 /* RNCallKeepTest.xctest */,
5467
);
5568
name = Products;
5669
sourceTree = "<group>";
@@ -61,10 +74,18 @@
6174
23DBCD111E13B465003D485F /* RNCallKeep.h */,
6275
23DBCD121E13B465003D485F /* RNCallKeep.m */,
6376
);
64-
name = RNCallKeep;
6577
path = RNCallKeep;
6678
sourceTree = "<group>";
6779
};
80+
32B7E21A234CE7C800FE38A4 /* RNCallKeepTest */ = {
81+
isa = PBXGroup;
82+
children = (
83+
32B7E21B234CE7C800FE38A4 /* RNCallKeepTest.m */,
84+
32B7E21D234CE7C800FE38A4 /* Info.plist */,
85+
);
86+
path = RNCallKeepTest;
87+
sourceTree = "<group>";
88+
};
6889
/* End PBXGroup section */
6990

7091
/* Begin PBXNativeTarget section */
@@ -85,6 +106,23 @@
85106
productReference = 234528921E0B88C700D1A033 /* libRNCallKeep.a */;
86107
productType = "com.apple.product-type.library.static";
87108
};
109+
32B7E218234CE7C800FE38A4 /* RNCallKeepTest */ = {
110+
isa = PBXNativeTarget;
111+
buildConfigurationList = 32B7E220234CE7C800FE38A4 /* Build configuration list for PBXNativeTarget "RNCallKeepTest" */;
112+
buildPhases = (
113+
32B7E215234CE7C800FE38A4 /* Sources */,
114+
32B7E216234CE7C800FE38A4 /* Frameworks */,
115+
32B7E217234CE7C800FE38A4 /* Resources */,
116+
);
117+
buildRules = (
118+
);
119+
dependencies = (
120+
);
121+
name = RNCallKeepTest;
122+
productName = RNCallKeepTest;
123+
productReference = 32B7E219234CE7C800FE38A4 /* RNCallKeepTest.xctest */;
124+
productType = "com.apple.product-type.bundle.unit-test";
125+
};
88126
/* End PBXNativeTarget section */
89127

90128
/* Begin PBXProject section */
@@ -98,13 +136,18 @@
98136
CreatedOnToolsVersion = 8.1;
99137
ProvisioningStyle = Automatic;
100138
};
139+
32B7E218234CE7C800FE38A4 = {
140+
CreatedOnToolsVersion = 11.0;
141+
ProvisioningStyle = Automatic;
142+
};
101143
};
102144
};
103145
buildConfigurationList = 2345288D1E0B88C700D1A033 /* Build configuration list for PBXProject "RNCallKeep" */;
104146
compatibilityVersion = "Xcode 3.2";
105147
developmentRegion = English;
106148
hasScannedForEncodings = 0;
107149
knownRegions = (
150+
English,
108151
en,
109152
);
110153
mainGroup = 234528891E0B88C700D1A033;
@@ -113,10 +156,21 @@
113156
projectRoot = "";
114157
targets = (
115158
234528911E0B88C700D1A033 /* RNCallKeep */,
159+
32B7E218234CE7C800FE38A4 /* RNCallKeepTest */,
116160
);
117161
};
118162
/* End PBXProject section */
119163

164+
/* Begin PBXResourcesBuildPhase section */
165+
32B7E217234CE7C800FE38A4 /* Resources */ = {
166+
isa = PBXResourcesBuildPhase;
167+
buildActionMask = 2147483647;
168+
files = (
169+
);
170+
runOnlyForDeploymentPostprocessing = 0;
171+
};
172+
/* End PBXResourcesBuildPhase section */
173+
120174
/* Begin PBXSourcesBuildPhase section */
121175
2345288E1E0B88C700D1A033 /* Sources */ = {
122176
isa = PBXSourcesBuildPhase;
@@ -126,6 +180,14 @@
126180
);
127181
runOnlyForDeploymentPostprocessing = 0;
128182
};
183+
32B7E215234CE7C800FE38A4 /* Sources */ = {
184+
isa = PBXSourcesBuildPhase;
185+
buildActionMask = 2147483647;
186+
files = (
187+
32B7E21C234CE7C800FE38A4 /* RNCallKeepTest.m in Sources */,
188+
);
189+
runOnlyForDeploymentPostprocessing = 0;
190+
};
129191
/* End PBXSourcesBuildPhase section */
130192

131193
/* Begin XCBuildConfiguration section */
@@ -237,6 +299,65 @@
237299
};
238300
name = Release;
239301
};
302+
32B7E21E234CE7C800FE38A4 /* Debug */ = {
303+
isa = XCBuildConfiguration;
304+
buildSettings = {
305+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
306+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
307+
CLANG_ENABLE_OBJC_WEAK = YES;
308+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
309+
CLANG_WARN_COMMA = YES;
310+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
311+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
312+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
313+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
314+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
315+
CLANG_WARN_STRICT_PROTOTYPES = YES;
316+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
317+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
318+
CODE_SIGN_STYLE = Automatic;
319+
COMBINE_HIDPI_IMAGES = YES;
320+
GCC_C_LANGUAGE_STANDARD = gnu11;
321+
INFOPLIST_FILE = RNCallKeepTest/Info.plist;
322+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
323+
MACOSX_DEPLOYMENT_TARGET = 10.14;
324+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
325+
MTL_FAST_MATH = YES;
326+
PRODUCT_BUNDLE_IDENTIFIER = "com.react-native-webrtc.RNCallKeepTest";
327+
PRODUCT_NAME = "$(TARGET_NAME)";
328+
SDKROOT = macosx;
329+
};
330+
name = Debug;
331+
};
332+
32B7E21F234CE7C800FE38A4 /* Release */ = {
333+
isa = XCBuildConfiguration;
334+
buildSettings = {
335+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
336+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
337+
CLANG_ENABLE_OBJC_WEAK = YES;
338+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
339+
CLANG_WARN_COMMA = YES;
340+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
341+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
342+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
343+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
344+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
345+
CLANG_WARN_STRICT_PROTOTYPES = YES;
346+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
347+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
348+
CODE_SIGN_STYLE = Automatic;
349+
COMBINE_HIDPI_IMAGES = YES;
350+
GCC_C_LANGUAGE_STANDARD = gnu11;
351+
INFOPLIST_FILE = RNCallKeepTest/Info.plist;
352+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
353+
MACOSX_DEPLOYMENT_TARGET = 10.14;
354+
MTL_FAST_MATH = YES;
355+
PRODUCT_BUNDLE_IDENTIFIER = "com.react-native-webrtc.RNCallKeepTest";
356+
PRODUCT_NAME = "$(TARGET_NAME)";
357+
SDKROOT = macosx;
358+
};
359+
name = Release;
360+
};
240361
/* End XCBuildConfiguration section */
241362

242363
/* Begin XCConfigurationList section */
@@ -258,6 +379,15 @@
258379
defaultConfigurationIsVisible = 0;
259380
defaultConfigurationName = Release;
260381
};
382+
32B7E220234CE7C800FE38A4 /* Build configuration list for PBXNativeTarget "RNCallKeepTest" */ = {
383+
isa = XCConfigurationList;
384+
buildConfigurations = (
385+
32B7E21E234CE7C800FE38A4 /* Debug */,
386+
32B7E21F234CE7C800FE38A4 /* Release */,
387+
);
388+
defaultConfigurationIsVisible = 0;
389+
defaultConfigurationName = Release;
390+
};
261391
/* End XCConfigurationList section */
262392
};
263393
rootObject = 2345288A1E0B88C700D1A033 /* Project object */;

ios/RNCallKeepTest/Info.plist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>

ios/RNCallKeepTest/RNCallKeepTest.m

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// RNCallKeepTest.m
3+
// RNCallKeepTest
4+
//
5+
// Created by Manu on 2019-10-08.
6+
// Copyright © 2019 react-native-webrtc. All rights reserved.
7+
//
8+
9+
#import <XCTest/XCTest.h>
10+
11+
@interface RNCallKeepTest : XCTestCase
12+
13+
@end
14+
15+
@implementation RNCallKeepTest
16+
17+
- (void)setUp {
18+
// Put setup code here. This method is called before the invocation of each test method in the class.
19+
}
20+
21+
- (void)tearDown {
22+
// Put teardown code here. This method is called after the invocation of each test method in the class.
23+
}
24+
25+
- (void)testExample {
26+
// This is an example of a functional test case.
27+
// Use XCTAssert and related functions to verify your tests produce the correct results.
28+
}
29+
30+
- (void)testPerformanceExample {
31+
// This is an example of a performance test case.
32+
[self measureBlock:^{
33+
// Put the code you want to measure the time of here.
34+
}];
35+
}
36+
37+
@end

0 commit comments

Comments
 (0)