blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07001#!/usr/bin/env bash
Vince Lehman0a7da612014-10-29 14:39:29 -05002set -e
Davide Pesaventof6be8e32020-04-30 16:06:03 -04003source .jenkins.d/util.sh
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07004
Davide Pesaventoba8a4ed2021-10-13 21:28:43 -04005if has Linux $NODE_LABELS; then
6 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
7fi
Davide Pesaventof6be8e32020-04-30 16:06:03 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
9export WAF_JOBS=${WAF_JOBS:-1}
10[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -070011
Davide Pesaventof6be8e32020-04-30 16:06:03 -040012for file in .jenkins.d/*; do
Nick Gd69f9a32016-08-23 11:30:02 -050013 [[ -f $file && -x $file ]] || continue
Davide Pesaventof6be8e32020-04-30 16:06:03 -040014
Davide Pesaventoba8a4ed2021-10-13 21:28:43 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesaventof6be8e32020-04-30 16:06:03 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesaventoba8a4ed2021-10-13 21:28:43 -040017 echo "::group::${label}"
Davide Pesaventof6be8e32020-04-30 16:06:03 -040018 fi
19
20 echo "\$ $file"
Nick Gd69f9a32016-08-23 11:30:02 -050021 "$file"
Davide Pesaventof6be8e32020-04-30 16:06:03 -040022
Davide Pesaventoba8a4ed2021-10-13 21:28:43 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesaventof6be8e32020-04-30 16:06:03 -040025 fi
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -070026done