blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Yingdi Yu906c2ea2014-10-31 11:24:50 -07001#!/usr/bin/env bash
2set -e
Davide Pesaventoa0546db2020-04-01 19:18:04 -04003source .jenkins.d/util.sh
Yingdi Yu906c2ea2014-10-31 11:24:50 -07004
Davide Pesavento22eeb292021-10-01 21:20:53 -04005if has Linux $NODE_LABELS; then
6 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
7fi
Davide Pesaventoa0546db2020-04-01 19:18:04 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
9export WAF_JOBS=${WAF_JOBS:-1}
10[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Yingdi Yu906c2ea2014-10-31 11:24:50 -070011
Davide Pesaventoa0546db2020-04-01 19:18:04 -040012for file in .jenkins.d/*; do
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080013 [[ -f $file && -x $file ]] || continue
Davide Pesaventoa0546db2020-04-01 19:18:04 -040014
Davide Pesavento22eeb292021-10-01 21:20:53 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesaventoa0546db2020-04-01 19:18:04 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesavento22eeb292021-10-01 21:20:53 -040017 echo "::group::${label}"
Davide Pesaventoa0546db2020-04-01 19:18:04 -040018 fi
19
20 echo "\$ $file"
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080021 "$file"
Davide Pesaventoa0546db2020-04-01 19:18:04 -040022
Davide Pesavento22eeb292021-10-01 21:20:53 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesaventoa0546db2020-04-01 19:18:04 -040025 fi
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080026done