Skip to content

Commit

Permalink
Add a CI on tektoncd/experimental…
Browse files Browse the repository at this point in the history
… the scripts will take care and detect what to run on which PRs (aka
not running all the test if the changes happen only on one folder.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and tekton-robot committed Jun 12, 2019
1 parent 6a8e66d commit 2e0ca99
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,109 @@ presubmits:
- name: test-account
secret:
secretName: test-account
tektoncd/experimental:
- name: pull-tekton-experimental-build-tests
agent: kubernetes
always_run: true
rerun_command: "/test pull-tekton-experimental-build-tests"
trigger: "(?m)^/test (all|pull-tekton-experimental-build-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/tekton-releases/tests/test-runner@sha256:a4a64b2b70f85a618bbbcc6c0b713b313b2e410504dee24c9f90ec6fe3ebf63f
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--build-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-tekton-experimental-unit-tests
agent: kubernetes
always_run: true
rerun_command: "/test tekton-experimental-unit-tests"
trigger: "(?m)^/test (all|tekton-experimental-unit-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/tekton-releases/tests/test-runner@sha256:a4a64b2b70f85a618bbbcc6c0b713b313b2e410504dee24c9f90ec6fe3ebf63f
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--unit-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-tekton-experimental-integration-tests
agent: kubernetes
always_run: true
rerun_command: "/test pull-tekton-experimental-integration-tests"
trigger: "(?m)^/test (all|pull-tekton-experimental-integration-tests),?(\\s+|$)"
spec:
containers:
- image: gcr.io/tekton-releases/tests/test-runner@sha256:a4a64b2b70f85a618bbbcc6c0b713b313b2e410504dee24c9f90ec6fe3ebf63f
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://tekton-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--integration-tests"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
tektoncd/pipeline:
- name: pull-tekton-pipeline-build-tests
agent: kubernetes
Expand Down

0 comments on commit 2e0ca99

Please sign in to comment.