core-admin/ci/codecov-wrapper
Marek Marczykowski-Górecki 2c8057c43a
gitlab-ci: add tests job
- run tests in a vm runner to have LVM and loop devices access
- upload coverage data via wrapper to extract PR number
2020-11-18 05:47:50 +01:00

12 lines
180 B
Bash
Executable File

#!/bin/bash
PATH="$PATH:$HOME/.local/bin"
set -x
if [[ "$CI_COMMIT_BRANCH" =~ ^pr- ]]; then
PR=${CI_COMMIT_BRANCH#pr-}
exec codecov --pr "$PR" "$@"
fi
exec codecov "$@"