From aaf3a6c599b1b9b10a4f542e5bef94f91947c3a8 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Tue, 20 Aug 2019 15:04:02 -0400 Subject: [PATCH] Delete gopath-test taskrun example / YAML test This example doesn't demonstrate much, and it's the longest-running YAML test at about 3-5 minutes. It was copied over from knative/build days and hasn't seen many updates since. The example clones github.com/tektoncd/pipeline into a targetPath within $GOPATH and runs `go test ./...` on it, which is what takes so long. If we decide this example is worth keeping around, we should probably at least change the repo to something smaller and quicker to test, or change `go test` to just `go build` to save time. --- .../taskruns/taskrun-targetpath-gotest.yaml | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 examples/taskruns/taskrun-targetpath-gotest.yaml diff --git a/examples/taskruns/taskrun-targetpath-gotest.yaml b/examples/taskruns/taskrun-targetpath-gotest.yaml deleted file mode 100644 index 0533221dd43..00000000000 --- a/examples/taskruns/taskrun-targetpath-gotest.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: tekton.dev/v1alpha1 -kind: PipelineResource -metadata: - name: pipeline-git -spec: - type: git - params: - - name: revision - value: master - - name: url - value: https://github.com/tektoncd/pipeline ---- -apiVersion: tekton.dev/v1alpha1 -kind: TaskRun -metadata: - name: gopath-test -spec: - inputs: - resources: - - name: gitspace - resourceRef: - name: pipeline-git - taskSpec: - inputs: - resources: - - name: gitspace - type: git - targetPath: go/src/github.com/tektoncd/pipeline - steps: - - name: test-build - image: golang - command: ['go'] - args: - - 'test' - - '-v' - - '-count=1' - - './...' - workingDir: "$(inputs.resources.gitspace.path)" - env: - - name: GOPATH - value: /workspace/go