blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Alexander Afanasyev740812e2014-10-30 15:37:45 -07001#!/usr/bin/env bash
2set -e
Davide Pesavento5b9c85a2020-04-09 21:10:54 -04003source .jenkins.d/util.sh
Alexander Afanasyev740812e2014-10-30 15:37:45 -07004
Davide Pesaventoab6ac5d2021-10-05 23:23:53 -04005if has Linux $NODE_LABELS; then
6 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
7fi
Davide Pesavento5b9c85a2020-04-09 21:10:54 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
9export WAF_JOBS=${WAF_JOBS:-1}
10[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Alexander Afanasyev740812e2014-10-30 15:37:45 -070011
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040012for file in .jenkins.d/*; do
Davide Pesavento29db0fd2017-08-29 13:32:00 -040013 [[ -f $file && -x $file ]] || continue
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040014
Davide Pesaventoab6ac5d2021-10-05 23:23:53 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesaventoab6ac5d2021-10-05 23:23:53 -040017 echo "::group::${label}"
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040018 fi
19
20 echo "\$ $file"
Davide Pesavento29db0fd2017-08-29 13:32:00 -040021 "$file"
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040022
Davide Pesaventoab6ac5d2021-10-05 23:23:53 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesavento5b9c85a2020-04-09 21:10:54 -040025 fi
Alexander Afanasyev740812e2014-10-30 15:37:45 -070026done