mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-21 02:08:02 +02:00
Try and handle multiple coveralls
This commit is contained in:
parent
a89b8cc838
commit
bfee5e3023
17
.github/workflows/boxes.yml
vendored
17
.github/workflows/boxes.yml
vendored
@ -45,8 +45,10 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: out/lcov-total.info
|
file: out/lcov-total.info
|
||||||
format: lcov
|
format: lcov
|
||||||
|
flag-name: run-linux
|
||||||
|
parallel: true
|
||||||
|
|
||||||
build-mac:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
LEX: /usr/local/opt/flex/bin/flex
|
LEX: /usr/local/opt/flex/bin/flex
|
||||||
@ -79,3 +81,16 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: out/lcov-total.info
|
file: out/lcov-total.info
|
||||||
format: lcov
|
format: lcov
|
||||||
|
flag-name: run-macos
|
||||||
|
parallel: true
|
||||||
|
|
||||||
|
finish:
|
||||||
|
needs: [build, build-macos]
|
||||||
|
if: ${{ always() }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Coveralls Finished
|
||||||
|
uses: coverallsapp/github-action@v2
|
||||||
|
with:
|
||||||
|
parallel-finished: true
|
||||||
|
carryforward: "run-linux,run-macos"
|
||||||
|
@ -159,14 +159,17 @@ function measure_coverage()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# NOTE: It is possible when the white box tests work that we can
|
||||||
|
# remove the --ignore-errors unused option. But for now, we use it so
|
||||||
|
# that the CI is "happy" and we can get a baseline.
|
||||||
function consolidate_coverage()
|
function consolidate_coverage()
|
||||||
{
|
{
|
||||||
echo -e "\nConsolidating test coverage ..."
|
echo -e "\nConsolidating test coverage ..."
|
||||||
pushd ${OUT_DIR}/test-results || exit 1
|
pushd ${OUT_DIR}/test-results || exit 1
|
||||||
find . -name "*.info" | xargs printf -- '--add-tracefile %s\n' | xargs --exit \
|
find . -name "*.info" | xargs printf -- '--add-tracefile %s\n' | xargs --exit \
|
||||||
lcov --rc lcov_branch_coverage=1 --exclude '*/lex.yy.c' --exclude '*/parser.c' \
|
lcov --rc branch_coverage=1 --exclude '*/lex.yy.c' --exclude '*/parser.c' \
|
||||||
--ignore-errors unused --output-file ../${COVERAGE_FILE} --add-tracefile ../${BASELINE_FILE}
|
--ignore-errors unused \
|
||||||
|
--output-file ../${COVERAGE_FILE} --add-tracefile ../${BASELINE_FILE}
|
||||||
popd || exit 1
|
popd || exit 1
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user