mirror of https://github.com/citusdata/citus.git
Add some necessary citus enterprise support to CI helpers
parent
4c68ed4c33
commit
cc5f874c9d
|
@ -9,7 +9,7 @@ source ci/ci_helpers.sh
|
|||
# 2. Strip the directory
|
||||
# 3. Exclude some scripts that we should not run in CI directly
|
||||
ci_scripts=$(
|
||||
find ci/ -iname "*.sh" |
|
||||
find ci/ -maxdepth 1 -iname "*.sh" |
|
||||
sed -E 's#^ci/##g' |
|
||||
grep -v -E '^(ci_helpers.sh|fix_style.sh)$'
|
||||
)
|
||||
|
|
|
@ -23,10 +23,10 @@ hint_on_fail() {
|
|||
# Get filename of the currently running script
|
||||
# Source: https://stackoverflow.com/a/192337/2570866
|
||||
filename=$(basename "$0")
|
||||
directory=$(dirname "$0")
|
||||
if [ $exit_code != 0 ]; then
|
||||
echo "HINT: To solve this failure look here: https://github.com/citusdata/citus/blob/master/ci/README.md#$filename"
|
||||
echo "HINT: To solve this failure look here: https://github.com/citusdata/citus/blob/master/$directory/README.md#$filename"
|
||||
fi
|
||||
exit $exit_code
|
||||
}
|
||||
trap hint_on_fail EXIT
|
||||
|
||||
|
|
Loading…
Reference in New Issue