mirror of https://github.com/BOINC/boinc.git
[Codecov] Use action to upload coverage report
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
parent
c28adcc374
commit
96de335b3c
|
@ -39,7 +39,6 @@ jobs:
|
|||
if: ${{ success() && matrix.type == 'manager' }}
|
||||
run: |
|
||||
./android/ci_build_manager.sh
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- name: Build libs
|
||||
if: ${{ success() && matrix.type == 'libs' }}
|
||||
|
@ -57,8 +56,16 @@ jobs:
|
|||
PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
run: ./deploy/prepare_deployment.sh android_${{ matrix.type }} && ./deploy/deploy_to_bintray.sh deploy/android_${{ matrix.type }}/
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ ! contains(matrix.type, 'libs') }}
|
||||
with:
|
||||
name: android_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
|
||||
path: deploy/android_${{ matrix.type }}/*.7z
|
||||
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v1
|
||||
if: ${{ success() && matrix.type == 'manager' }}
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
verbose: false
|
||||
|
|
|
@ -92,8 +92,16 @@ jobs:
|
|||
PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
run: ./deploy/prepare_deployment.sh linux_${{ matrix.type }} && ./deploy/deploy_to_bintray.sh deploy/linux_${{ matrix.type }}/
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ ! contains(matrix.type, 'libs') && ! contains(matrix.type, 'server') && ! contains(matrix.type, 'test') }}
|
||||
with:
|
||||
name: linux_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
|
||||
path: deploy/linux_${{ matrix.type }}/*.7z
|
||||
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v1
|
||||
if: success() && matrix.type == 'unit-test'
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
verbose: false
|
||||
|
|
|
@ -39,7 +39,8 @@ jobs:
|
|||
PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
run: ./deploy/prepare_deployment.sh win_${{ matrix.type }} && ./deploy/deploy_to_bintray.sh deploy/win_${{ matrix.type }}/
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ ! contains(matrix.type, 'libs') }}
|
||||
with:
|
||||
name: win_${{ matrix.type }}_${{ github.event.pull_request.head.sha }}
|
||||
|
|
|
@ -74,11 +74,3 @@ if [ $? -ne 0 ]; then cd ../..; exit 1; fi
|
|||
for T in lib sched; do
|
||||
[ -d "${T}" ] && ./${T}/test_${T};
|
||||
done
|
||||
|
||||
cd ../..
|
||||
if [ "${report}" = "yes" ]; then
|
||||
#for T in lib sched; do
|
||||
# [ -d "${T}" ] && gcov -lp *.o >/dev/null;
|
||||
#done
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue