patch 8.2.4061: codecov bash script is deprecated
Problem: Codecov bash script is deprecated. Solution: Use the codecov action. (Ozaki Kiichi, closes #9505)
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -92,6 +92,7 @@ jobs:
|
|||||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
|
||||||
sudo update-alternatives --set clang /usr/bin/clang-13
|
sudo update-alternatives --set clang /usr/bin/clang-13
|
||||||
sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-13 100
|
sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-13 100
|
||||||
|
sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-13 100
|
||||||
|
|
||||||
- name: Set up environment
|
- name: Set up environment
|
||||||
run: |
|
run: |
|
||||||
@ -119,7 +120,6 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CFLAGS=""
|
|
||||||
if ${{ matrix.coverage == true }}; then
|
if ${{ matrix.coverage == true }}; then
|
||||||
CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
|
CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
|
||||||
echo "LDFLAGS=--coverage"
|
echo "LDFLAGS=--coverage"
|
||||||
@ -231,17 +231,23 @@ jobs:
|
|||||||
# CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
|
# CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
|
||||||
# ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
|
# ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
|
||||||
|
|
||||||
- name: Codecov
|
- name: Generate gcov files
|
||||||
if: matrix.coverage && success()
|
if: matrix.coverage && success()
|
||||||
run: |
|
run: |
|
||||||
cd "${SRCDIR}"
|
cd "${SRCDIR}"
|
||||||
bash <(curl -s https://codecov.io/bash) -F "${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}"
|
find . -type f -name '*.gcno' -exec gcov -pb {} + || true
|
||||||
|
|
||||||
|
- name: Codecov
|
||||||
|
if: matrix.coverage && success()
|
||||||
|
uses: codecov/codecov-action@v2
|
||||||
|
with:
|
||||||
|
flags: ${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
|
||||||
|
|
||||||
- name: ASan logs
|
- name: ASan logs
|
||||||
if: contains(matrix.extra, 'asan') && !cancelled()
|
if: contains(matrix.extra, 'asan') && !cancelled()
|
||||||
run: |
|
run: |
|
||||||
for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do
|
for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do
|
||||||
asan_symbolize-13 -l "$f"
|
asan_symbolize -l "$f"
|
||||||
false # in order to fail a job
|
false # in order to fail a job
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4061,
|
||||||
/**/
|
/**/
|
||||||
4060,
|
4060,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user