mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
15 lines
559 B
Bash
Executable File
15 lines
559 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -d aggregated-coverage ]; then
|
|
npm install --no-save --no-package-lock "[email protected]" "[email protected]"
|
|
|
|
echo "Merging LCOV files"
|
|
rm -f "aggregated-coverage/merged.lcov"
|
|
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
|