Skip to content

Bootstrap CI #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
matrix:
include:
- os: linux
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-23.0.1
- android-23
- os: osx
language: objective-c
osx_image:
- xcode10
- xcode11
xcode_project: ios/RNCallKeep.xcodeproj
xcode_scheme: RNCallKeep
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPhone X
132 changes: 131 additions & 1 deletion ios/RNCallKeep.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

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

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

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -36,13 +40,21 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
32B7E216234CE7C800FE38A4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
234528891E0B88C700D1A033 = {
isa = PBXGroup;
children = (
234528941E0B88C700D1A033 /* RNCallKeep */,
32B7E21A234CE7C800FE38A4 /* RNCallKeepTest */,
234528931E0B88C700D1A033 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -51,6 +63,7 @@
isa = PBXGroup;
children = (
234528921E0B88C700D1A033 /* libRNCallKeep.a */,
32B7E219234CE7C800FE38A4 /* RNCallKeepTest.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -61,10 +74,18 @@
23DBCD111E13B465003D485F /* RNCallKeep.h */,
23DBCD121E13B465003D485F /* RNCallKeep.m */,
);
name = RNCallKeep;
path = RNCallKeep;
sourceTree = "<group>";
};
32B7E21A234CE7C800FE38A4 /* RNCallKeepTest */ = {
isa = PBXGroup;
children = (
32B7E21B234CE7C800FE38A4 /* RNCallKeepTest.m */,
32B7E21D234CE7C800FE38A4 /* Info.plist */,
);
path = RNCallKeepTest;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -85,6 +106,23 @@
productReference = 234528921E0B88C700D1A033 /* libRNCallKeep.a */;
productType = "com.apple.product-type.library.static";
};
32B7E218234CE7C800FE38A4 /* RNCallKeepTest */ = {
isa = PBXNativeTarget;
buildConfigurationList = 32B7E220234CE7C800FE38A4 /* Build configuration list for PBXNativeTarget "RNCallKeepTest" */;
buildPhases = (
32B7E215234CE7C800FE38A4 /* Sources */,
32B7E216234CE7C800FE38A4 /* Frameworks */,
32B7E217234CE7C800FE38A4 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = RNCallKeepTest;
productName = RNCallKeepTest;
productReference = 32B7E219234CE7C800FE38A4 /* RNCallKeepTest.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -98,13 +136,18 @@
CreatedOnToolsVersion = 8.1;
ProvisioningStyle = Automatic;
};
32B7E218234CE7C800FE38A4 = {
CreatedOnToolsVersion = 11.0;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 2345288D1E0B88C700D1A033 /* Build configuration list for PBXProject "RNCallKeep" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = 234528891E0B88C700D1A033;
Expand All @@ -113,10 +156,21 @@
projectRoot = "";
targets = (
234528911E0B88C700D1A033 /* RNCallKeep */,
32B7E218234CE7C800FE38A4 /* RNCallKeepTest */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
32B7E217234CE7C800FE38A4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
2345288E1E0B88C700D1A033 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand All @@ -126,6 +180,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
32B7E215234CE7C800FE38A4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
32B7E21C234CE7C800FE38A4 /* RNCallKeepTest.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -237,6 +299,65 @@
};
name = Release;
};
32B7E21E234CE7C800FE38A4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = RNCallKeepTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.react-native-webrtc.RNCallKeepTest";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
};
name = Debug;
};
32B7E21F234CE7C800FE38A4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = RNCallKeepTest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.react-native-webrtc.RNCallKeepTest";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -258,6 +379,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
32B7E220234CE7C800FE38A4 /* Build configuration list for PBXNativeTarget "RNCallKeepTest" */ = {
isa = XCConfigurationList;
buildConfigurations = (
32B7E21E234CE7C800FE38A4 /* Debug */,
32B7E21F234CE7C800FE38A4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 2345288A1E0B88C700D1A033 /* Project object */;
Expand Down
22 changes: 22 additions & 0 deletions ios/RNCallKeepTest/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
37 changes: 37 additions & 0 deletions ios/RNCallKeepTest/RNCallKeepTest.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// RNCallKeepTest.m
// RNCallKeepTest
//
// Created by Manu on 2019-10-08.
// Copyright © 2019 react-native-webrtc. All rights reserved.
//

#import <XCTest/XCTest.h>

@interface RNCallKeepTest : XCTestCase

@end

@implementation RNCallKeepTest

- (void)setUp {
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}

@end