mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 03:15:33 +00:00
This sets us up to run all common/ and resources/ tests from a single script, common/build.sh. This test will be run on each platform for all changes made in common/ or resources/. Also renamed files and paths for consistency in resources/ and updated tests accordingly.
25 lines
No EOL
621 B
Bash
Executable file
25 lines
No EOL
621 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
## START STANDARD BUILD SCRIPT INCLUDE
|
|
# adjust relative paths as necessary
|
|
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
|
|
. "${THIS_SCRIPT%/*}/../../../resources/build/build-utils.sh"
|
|
# END STANDARD BUILD SCRIPT INCLUDE
|
|
|
|
builder_describe \
|
|
"Error-generating delegate script" \
|
|
"raise-build-error+" \
|
|
"unreported-action"
|
|
|
|
builder_parse "$@"
|
|
|
|
if builder_start_action raise-build-error; then
|
|
echo "Emulating build script error => failure report"
|
|
exit 1
|
|
fi
|
|
|
|
if builder_start_action unreported-action; then
|
|
echo "Leaving action 'success' unreported; should trigger trap message"
|
|
fi |