Skip to content

Commit

Permalink
Skip install pacakge command in serverless builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Apr 23, 2024
1 parent 54bb873 commit b06f29c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -814,10 +814,16 @@ run_tests_package() {
fi
fi

echo "--- [${package}] test installation"
if ! install_package "${package}" ; then
return 1
if ! is_serverless ; then
# Just run install command on non serverless projects,
# "elastic-paackage test asset" command already installs the package via upload API
# as it does "elastic-package install" command
echo "--- [${package}] test installation"
if ! install_package "${package}" ; then
return 1
fi
fi

echo "--- [${package}] run test suites"
if is_serverless; then
if ! test_package_in_serverless "${package}" ; then
Expand Down

0 comments on commit b06f29c

Please sign in to comment.