Skip to content

Commit fd40ea5

Browse files
committed
[CI] set and create default buildpack file
1 parent 07e7628 commit fd40ea5

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

scripts/integration.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ function main() {
9393
esac
9494
done
9595

96-
if [[ -z "${BUILDPACK_FILE:-}" ]]; then
97-
echo "ERROR: BUILDPACK_FILE environment variable is required"
98-
exit 1
99-
fi
100-
101-
if [[ ! -f "${BUILDPACK_FILE}" ]]; then
102-
echo "ERROR: Buildpack file not found: ${BUILDPACK_FILE}"
103-
exit 1
104-
fi
105-
10696
echo "=== Java Buildpack Integration Tests ==="
10797
echo "Platform: ${platform}"
10898
echo "Stack: ${stack}"
@@ -141,8 +131,11 @@ function specs::run() {
141131
cd "${ROOTDIR}"
142132
go mod download
143133

134+
local buildpack_file
135+
buildpack_file="$(buildpack::package "1.2.3" "${cached}" "${stack}")"
136+
144137
CF_STACK="${stack}" \
145-
BUILDPACK_FILE="${BUILDPACK_FILE}" \
138+
BUILDPACK_FILE="${BUILDPACK_FILE:-"${buildpack_file}"}" \
146139
GOMAXPROCS="${GOMAXPROCS:-"${nodes}"}" \
147140
go test \
148141
-count=1 \

0 commit comments

Comments
 (0)