Skip to content

Commit 83cb195

Browse files
committed
Combine both run-cats tasks into one
- use an optional input to allow users to provide their own CF CLI if desired - the old run-cats-with-provided-cli task is symlinked to avoid a breaking change
1 parent b182567 commit 83cb195

File tree

6 files changed

+12
-72
lines changed

6 files changed

+12
-72
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,8 @@ wins.
141141
### [run-cats][run-cats-task-yaml]
142142
This runs [CF Acceptance Tests](https://github.com/cloudfoundry/cf-acceptance-tests)
143143
against a CF environment specified by the CATs integration file.
144-
145-
### [run-cats-with-provided-cli][run-cats-with-provided-cli-task-yaml]
146-
This runs [CF Acceptance Tests](https://github.com/cloudfoundry/cf-acceptance-tests)
147-
with the provided CF CLI binary.
144+
If desired, you can use the optional cf-cli input to provide your own CF CLI
145+
binary.
148146

149147
### [run-errand][run-errand-yaml]
150148
This runs a bosh errand
@@ -182,7 +180,6 @@ instance groups.
182180
[deployment-guide-on-certificates]: https://github.com/cloudfoundry/cf-deployment/blob/develop/deployment-guide.md#on-certificates
183181
[issues-page]: https://github.com/cloudfoundry/cf-deployment-concourse-tasks/issues
184182
[run-cats-task-yaml]: run-cats/task.yml
185-
[run-cats-with-provided-cli-task-yaml]: run-cats-with-provided-cli/task.yml
186183
[run-errand-yaml]: run-errand/task.yml
187184
[runtime-ci-build-docker-images]: https://runtime.ci.cf-app.com/teams/main/pipelines/build-docker-images?groups=cf-deployment-concourse-tasks
188185
[set-feature-flags-task-yaml]: set-feature-flags/task.yml

run-cats-with-provided-cli

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run-cats

run-cats-with-provided-cli/task

-10
This file was deleted.

run-cats-with-provided-cli/task.yml

-57
This file was deleted.

run-cats/task

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ set -xeu
33

44
build_dir=${PWD}
55

6+
if [[ -d "${build_dir}/cf-cli" ]]; then
7+
echo "Setting PATH so that input cf-cli is found by CATs..."
8+
PATH="${build_dir}/cf-cli:${PATH}"
9+
export PATH
10+
fi
11+
612
export CONFIG
713
CONFIG=$(mktemp)
814

run-cats/task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ inputs:
1111
- name: cf-deployment-concourse-tasks
1212
- name: cf-acceptance-tests
1313
- name: integration-config
14+
- name: cf-cli
15+
optional: true
16+
# - Input to run your own cf-cli binary
1417

1518
outputs:
1619
- name: cats-trace-output

0 commit comments

Comments
 (0)