blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
Alexander Afanasyev33ce4c32014-10-24 11:19:45 -07002set -e
Davide Pesavento2349e282020-03-24 14:28:03 -04003source .jenkins.d/util.sh
4
Davide Pesavento09d56622021-08-23 17:44:25 -04005if has Linux $NODE_LABELS; then
Davide Pesavento83f8d162021-09-26 21:58:36 -04006 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
Davide Pesavento09d56622021-08-23 17:44:25 -04007fi
Davide Pesaventoab7300b2020-04-09 00:51:41 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
Davide Pesavento2349e282020-03-24 14:28:03 -04009export WAF_JOBS=${WAF_JOBS:-1}
Davide Pesaventoab7300b2020-04-09 00:51:41 -040010[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -040011
Davide Pesaventoe6e125e2019-10-08 18:08:36 -040012for file in .jenkins.d/*; do
Alexander Afanasyeve7490032014-12-11 12:40:53 -080013 [[ -f $file && -x $file ]] || continue
Davide Pesaventoe6e125e2019-10-08 18:08:36 -040014
Davide Pesavento30ed6282021-07-25 20:05:06 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesavento83f8d162021-09-26 21:58:36 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesavento30ed6282021-07-25 20:05:06 -040017 echo "::group::${label}"
Davide Pesaventoe6e125e2019-10-08 18:08:36 -040018 fi
19
20 echo "\$ $file"
Alexander Afanasyeve7490032014-12-11 12:40:53 -080021 "$file"
Davide Pesaventoe6e125e2019-10-08 18:08:36 -040022
Davide Pesavento30ed6282021-07-25 20:05:06 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesaventoe6e125e2019-10-08 18:08:36 -040025 fi
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -040026done