Skip to content
Merged
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
12 changes: 0 additions & 12 deletions .codecov.yml

This file was deleted.

17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,30 @@ jobs:
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake ${{ matrix.script }}
env:
DEVELOPER_DIR: ${{ (matrix.script == 'package:release' && env.CI_XCODE_11) || env.CI_XCODE_14 }}
- name: Get Artifact Name
- name: Generate Environment Variables
if: ${{ always() }}
env:
ARTIFACT_NAME: ${{ matrix.script }}-logs
TEST_RESULTS: ${{ matrix.script }}.xcresult
run: |
ARTIFACT_NAME=${{ env.ARTIFACT_NAME }}
TEST_RESULTS=$(find ~/Library/Developer/Xcode/DerivedData -name "*.xcresult")
echo ARTIFACT_NAME=${ARTIFACT_NAME//:/-} >> $GITHUB_ENV # replace colon with dashes
echo TEST_RESULTS=${TEST_RESULTS} >> $GITHUB_ENV
echo "Artifact Name: $ARTIFACT_NAME"
echo "Test Result Location: $TEST_RESULTS"
- name: Upload Artifact Logs
if: ${{ always() }}
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACT_NAME }}
path: |
~/Library/Logs/DiagnosticReports
~/Library/Developer/Xcode/DerivedData/Parse-*/Logs/Test
- name: Send Codecov
run: bash <(curl https://codecov.io/bash)
- name: Upload Coverage
uses: codecov/[email protected]
with:
xcode: true
xcode_archive_path: ${{ env.TEST_RESULTS }}
docs:
runs-on: macos-12
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.DS_Store

## Build generated
.build/
build/
DerivedData
OCMock.framework
Expand Down
2 changes: 1 addition & 1 deletion Parse/Parse.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8860,7 +8860,7 @@
baseConfigurationReference = 81DCD1491D2DA080002501A2 /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@
baseConfigurationReference = 8121EAAB1D39862400AC0B02 /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
baseConfigurationReference = 8121EAAB1D39862400AC0B02 /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@
baseConfigurationReference = 8121EAAB1D39862400AC0B02 /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
baseConfigurationReference = 8154622F1D37FE6E0069489A /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
Expand Down
2 changes: 1 addition & 1 deletion ParseUI/ParseUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@
baseConfigurationReference = 4A9A948E200D02CE005D8F4B /* Debug.xcconfig */;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_CODE_COVERAGE = NO;
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,25 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES">
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4A9A9496200D0329005D8F4B"
BuildableName = "ParseUI.framework"
BlueprintName = "ParseUI"
ReferencedContainer = "container:ParseUI.xcodeproj">
</BuildableReference>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BCCBE8C823BFB89D0044A79C"
BuildableName = "SignInWithAppleTests.xctest"
BlueprintName = "SignInWithAppleTests"
ReferencedContainer = "container:ParseUI.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO">
Expand Down
22 changes: 5 additions & 17 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ namespace :test do
t.scheme = 'Parse-iOS'
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }
t.configuration = 'Debug -enableCodeCoverage YES'

t.actions = [XCTask::BuildAction::TEST]
t.formatter = XCTask::BuildFormatter::XCODEBUILD
Expand All @@ -483,9 +481,7 @@ namespace :test do

t.scheme = 'Parse-macOS'
t.sdk = 'macosx'
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }
t.configuration = 'Debug -enableCodeCoverage YES'

t.actions = [XCTask::BuildAction::TEST]
t.formatter = XCTask::BuildFormatter::XCODEBUILD
Expand All @@ -506,9 +502,7 @@ namespace :test do
t.scheme = 'ParseFacebookUtilsV4-iOS'
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }
t.configuration = 'Debug -enableCodeCoverage YES'

t.actions = [XCTask::BuildAction::TEST]
t.formatter = XCTask::BuildFormatter::XCODEBUILD
Expand All @@ -532,9 +526,7 @@ namespace :test do
t.scheme = 'ParseTwitterUtils-iOS'
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }
t.configuration = 'Debug -enableCodeCoverage YES'

t.actions = [XCTask::BuildAction::TEST]
t.formatter = XCTask::BuildFormatter::XCODEBUILD
Expand Down Expand Up @@ -562,7 +554,7 @@ namespace :test do
t.scheme = 'ParseUI'
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.configuration = 'Debug -enableCodeCoverage YES'

t.actions = [XCTask::BuildAction::TEST]
t.formatter = XCTask::BuildFormatter::XCODEBUILD
Expand All @@ -584,8 +576,6 @@ namespace :test do
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }

t.actions = [XCTask::BuildAction::CLEAN, XCTask::BuildAction::BUILD]
t.formatter = XCTask::BuildFormatter::XCPRETTY
Expand All @@ -607,8 +597,6 @@ namespace :test do
t.sdk = 'iphonesimulator'
t.destinations = [ios_simulator]
t.configuration = 'Debug'
t.additional_options = { "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" => "YES",
"GCC_GENERATE_TEST_COVERAGE_FILES" => "YES" }

t.actions = [XCTask::BuildAction::CLEAN, XCTask::BuildAction::BUILD]
t.formatter = XCTask::BuildFormatter::XCPRETTY
Expand Down