/
servlamo
/
POP
Обзор
Документация
Войти
/
servlamo
/
POP
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cicd/upload-code-coverage.sh
41 строка
1 KB
Pedro Algarvio
Start using nox to drive the test suite
26 окт 2020, 23:36
26 окт 2020, 23:36
4a9a1f3
Код
Авторство
О чём код?
set -ex if [ ! -f codecov.sh ]; then n=0 until [ "$n" -ge 5 ] do if curl --max-time 30 -L https://codecov.io/bash --output codecov.sh; then break fi n=$((n+1)) sleep 15 done fi export PY_VERSION=$(python -c "import sys; print('{}{}'.format(*sys.version_info))") export REPORT_NAME="Py${PY_VERSION}-Project" export REPORT_FLAGS="py${PY_VERSION},project" export REPORT_PATH="artifacts/coverage-project.xml" if [ -f codecov.sh ] && [ -f $REPORT_PATH ]; then n=0 until [ "$n" -ge 5 ] do if bash codecov.sh -R $(pwd) -n "${REPORT_NAME}" -f "${REPORT_PATH}" -F "${REPORT_FLAGS}"; then break fi n=$((n+1)) sleep 15 done fi export REPORT_NAME="Py${PY_VERSION}-Tests" export REPORT_FLAGS="py${PY_VERSION},tests" export REPORT_PATH="artifacts/coverage-tests.xml" if [ -f codecov.sh ] && [ -f $REPORT_PATH ]; then n=0 until [ "$n" -ge 5 ] do if bash codecov.sh -R $(pwd) -n "${REPORT_NAME}" -f "${REPORT_PATH}" -F "${REPORT_FLAGS}"; then break fi n=$((n+1)) sleep 15 done fi