-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor project + remove example + fix tests + add SonarCloud config…
…uration
- Loading branch information
1 parent
ccc11dd
commit 54e7c75
Showing
35 changed files
with
351 additions
and
1,144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: iOS CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Run CI | ||
run: make ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
function convert_file { | ||
local xccovarchive_file="$1" | ||
local file_name="$2" | ||
local xccov_options="$3" | ||
echo " <file path=\"$file_name\">" | ||
xcrun xccov view $xccov_options --file "$file_name" "$xccovarchive_file" | \ | ||
sed -n ' | ||
s/^ *\([0-9][0-9]*\): 0.*$/ <lineToCover lineNumber="\1" covered="false"\/>/p; | ||
s/^ *\([0-9][0-9]*\): [1-9].*$/ <lineToCover lineNumber="\1" covered="true"\/>/p | ||
' | ||
echo ' </file>' | ||
} | ||
|
||
function xccov_to_generic { | ||
echo '<coverage version="1">' | ||
for xccovarchive_file in "$@"; do | ||
local xccov_options="" | ||
if [[ $xccovarchive_file == *".xcresult"* ]]; then | ||
xccov_options="--archive" | ||
fi | ||
xcrun xccov view $xccov_options --file-list "$xccovarchive_file" | while read -r file_name; do | ||
convert_file "$xccovarchive_file" "$file_name" "$xccov_options" | ||
done | ||
done | ||
echo '</coverage>' | ||
} | ||
|
||
xccov_to_generic "$@" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
github "BatchLabs/ios-sdk" >= 1.15.0 | ||
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" | ||
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" | ||
github "erikdoe/ocmock" >= 3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "6.18.0" | ||
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "6.19.0" | ||
github "BatchLabs/ios-sdk" "1.15.0" | ||
github "erikdoe/ocmock" "v3.6" |
Oops, something went wrong.