From ee56690f6afc275fa945543757e5044f124125e5 Mon Sep 17 00:00:00 2001 From: Nader Ziada Date: Thu, 11 Oct 2018 13:05:26 -0400 Subject: [PATCH] Add test coverage to pull requests in the build pipeline repo (#179) --- ci/prow/config.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/ci/prow/config.yaml b/ci/prow/config.yaml index 5954e3204b..471a64a752 100644 --- a/ci/prow/config.yaml +++ b/ci/prow/config.yaml @@ -515,6 +515,40 @@ presubmits: requests: memory: "1Gi" + - name: pull-knative-build-pipeline-go-coverage + labels: + preset-service-account: "true" + agent: kubernetes + context: pull-knative-build-pipeline-go-coverage + always_run: true + rerun_command: "/test pull-knative-build-pipeline-go-coverage" + trigger: "(?m)^/test (all|pull-knative-build-pipeline-go-coverage),?(\\s+|$)" + optional: true + decorate: true + clone_uri: "https://github.com/knative/build-pipeline.git" + spec: + containers: + - image: gcr.io/knative-tests/test-infra/coverage:latest + imagePullPolicy: Always + command: + - "/coverage" + args: + - "--postsubmit-gcs-bucket=knative-prow" + - "--postsubmit-job-name=post-knative-build-pipeline-go-coverage" + - "--artifacts=$(ARTIFACTS)" + - "--profile-name=coverage_profile.txt" + - "--cov-target=." + - "--cov-threshold-percentage=50" + - "--github-token=/etc/github-token/token" + volumeMounts: + - name: github-token + mountPath: /etc/github-token + readOnly: true + volumes: + - name: github-token + secret: + secretName: covbot-token + knative/eventing: - name: pull-knative-eventing-build-tests agent: kubernetes