[CI] Collect and upload coverage on master branch (#1174)

This commit is contained in:
Amir Zarrinkafsh 2020-07-02 16:56:45 +10:00 committed by GitHub
parent db5924ac53
commit 0df8f6bfe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ if [[ $BUILDKITE_PULL_REQUEST != "false" ]]; then
fi fi
fi fi
if [[ ! $BUILDKITE_BRANCH =~ ^(master|v.*) ]] && [[ $BUILDKITE_COMMAND_EXIT_STATUS == 0 ]]; then if [[ ! $BUILDKITE_BRANCH =~ ^(v.*) ]] && [[ $BUILDKITE_COMMAND_EXIT_STATUS == 0 ]]; then
if [[ $BUILDKITE_LABEL == ":hammer_and_wrench: Unit Test" ]]; then if [[ $BUILDKITE_LABEL == ":hammer_and_wrench: Unit Test" ]]; then
echo "--- :codecov: Upload coverage reports" echo "--- :codecov: Upload coverage reports"
bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -f "coverage.txt" -F backend bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -f "coverage.txt" -F backend

View File

@ -48,11 +48,11 @@ steps:
if: build.env("CI_BYPASS") != "true" if: build.env("CI_BYPASS") != "true"
- wait: - wait:
if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
- label: ":chrome: Integration Tests" - label: ":chrome: Integration Tests"
command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload"
depends_on: depends_on:
- "build-docker-linux-coverage" - "build-docker-linux-coverage"
if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true"
EOF EOF

View File

@ -27,7 +27,7 @@ cat << EOF
EOF EOF
if [[ "${BUILD_ARCH}" == "coverage" ]]; then if [[ "${BUILD_ARCH}" == "coverage" ]]; then
cat << EOF cat << EOF
if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/
EOF EOF
fi fi
done done