-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add some more steps to test on Macos ARM (#2030)
Added a new step in the CI pipeline to test to build packages using elastic-package build command in MacOS ARM VMs. Doing that allows us to check that the at least can be executed this command in that platform and architecture.
- Loading branch information
Showing
5 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
cleanup() { | ||
r=$? | ||
|
||
# Clean used resources | ||
for d in test/packages/*/*/; do | ||
elastic-package clean -C "$d" -v | ||
done | ||
|
||
exit $r | ||
} | ||
|
||
testype() { | ||
basename "$(dirname "$1")" | ||
} | ||
|
||
trap cleanup EXIT | ||
|
||
OLDPWD=$PWD | ||
# Build packages | ||
export ELASTIC_PACKAGE_SIGNER_PRIVATE_KEYFILE="$OLDPWD/scripts/gpg-private.asc" | ||
ELASTIC_PACKAGE_SIGNER_PASSPHRASE=$(cat "$OLDPWD/scripts/gpg-pass.txt") | ||
export ELASTIC_PACKAGE_SIGNER_PASSPHRASE | ||
ELASTIC_PACKAGE_LINKS_FILE_PATH="$(pwd)/scripts/links_table.yml" | ||
export ELASTIC_PACKAGE_LINKS_FILE_PATH | ||
|
||
go run ./scripts/gpgkey | ||
|
||
for d in test/packages/*/*/; do | ||
# Packages in false_positives can have issues. | ||
if [ "$(testype $d)" == "false_positives" ]; then | ||
continue | ||
fi | ||
elastic-package build -C "$d" --zip --sign -v | ||
done | ||
|
||
# Remove unzipped built packages, leave .zip files | ||
rm -r build/packages/*/ |