-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: collect code coverage from e2e (wix#1317)
- Loading branch information
Showing
6 changed files
with
63 additions
and
21 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
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
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
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -d aggregated-coverage ]; then | ||
npm install --no-save --no-package-lock "[email protected]" "[email protected]" | ||
|
||
rm -f "aggregated-coverage/merged.lcov" | ||
{ | ||
for lcov in aggregated-coverage/**/*.lcov; do | ||
echo "Forcing relative paths in: $lcov" | ||
sed -i 's/^SF:.*\(detox-ios-51-pr\|detox-ios-56-pr\|detox-android-56-pr\)\//SF:/g' $lcov | ||
done | ||
|
||
echo "Merging LCOV files" | ||
node_modules/.bin/lcov-result-merger 'aggregated-coverage/**/*.lcov' "aggregated-coverage/merged.lcov" | ||
} && { | ||
echo "Uploading to coveralls" | ||
cat "aggregated-coverage/merged.lcov" | node_modules/.bin/coveralls | ||
} || { | ||
echo "Failed to aggregate the test coverage, skipping." | ||
} | ||
else | ||
echo "Aggregated coverage directory was not found, skipping." | ||
fi |
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
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