Configure a pipeline to run tests for every commit.
This commit is contained in:
parent
edcad08406
commit
24b308312e
@ -56,6 +56,36 @@ spec:
|
|||||||
params:
|
params:
|
||||||
- name: GIT_BRANCH
|
- name: GIT_BRANCH
|
||||||
value: "master"
|
value: "master"
|
||||||
|
- name: cargo-test
|
||||||
|
agent: tekton-pipeline
|
||||||
|
branches:
|
||||||
|
- ^.*$
|
||||||
|
context: cargo-test
|
||||||
|
max_concurrency: 1
|
||||||
|
# Override https-based url from lighthouse events.
|
||||||
|
clone_uri: "git@code.fizz.buzz:talexander/organic.git"
|
||||||
|
pipeline_run_spec:
|
||||||
|
serviceAccountName: build-bot
|
||||||
|
pipelineRef:
|
||||||
|
name: cargo-test-pipeline
|
||||||
|
namespace: lighthouse
|
||||||
|
workspaces:
|
||||||
|
- name: git-source
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
subPath: rust-source
|
||||||
|
params:
|
||||||
|
- name: cargo-test-args
|
||||||
|
value:
|
||||||
|
- --lib
|
||||||
|
- --test
|
||||||
|
- test_loader
|
||||||
- name: build-cargo-fmt
|
- name: build-cargo-fmt
|
||||||
agent: tekton-pipeline
|
agent: tekton-pipeline
|
||||||
branches:
|
branches:
|
||||||
|
Loading…
Reference in New Issue
Block a user