Skip to content

Commit b06f29c

Browse files
committed
Skip install pacakge command in serverless builds
1 parent 54bb873 commit b06f29c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.buildkite/scripts/common.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,16 @@ run_tests_package() {
814814
fi
815815
fi
816816

817-
echo "--- [${package}] test installation"
818-
if ! install_package "${package}" ; then
819-
return 1
817+
if ! is_serverless ; then
818+
# Just run install command on non serverless projects,
819+
# "elastic-paackage test asset" command already installs the package via upload API
820+
# as it does "elastic-package install" command
821+
echo "--- [${package}] test installation"
822+
if ! install_package "${package}" ; then
823+
return 1
824+
fi
820825
fi
826+
821827
echo "--- [${package}] run test suites"
822828
if is_serverless; then
823829
if ! test_package_in_serverless "${package}" ; then

0 commit comments

Comments
 (0)