Skip to content

Commit f13d42e

Browse files
committed
UPSTREAM: <carry>: Add e2e-test.sh script
1 parent 0b73b39 commit f13d42e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

openshift/e2e-tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
echo "Running e2e-tests.sh"
6+
7+
unset GOFLAGS
8+
tmp="$(mktemp -d)"
9+
10+
if [ "${PULL_BASE_REF}" == "master" ]; then
11+
# the default branch for cluster-capi-operator is main.
12+
CCAPIO_BASE_REF="main"
13+
else
14+
CCAPIO_BASE_REF=$PULL_BASE_REF
15+
fi
16+
17+
echo "cloning github.com/openshift/cluster-capi-operator at branch '$CCAPIO_BASE_REF'"
18+
git clone --single-branch --branch="$CCAPIO_BASE_REF" --depth=1 "https://github.com/openshift/cluster-capi-operator.git" "$tmp"
19+
20+
echo "running cluster-capi-operator's: make e2e"
21+
exec make -C "$tmp" e2e

0 commit comments

Comments
 (0)