core-admin/ci/codecov-wrapper

12 lines
180 B
Plaintext
Raw Normal View History

#!/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 "$@"