Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 2 | set -e |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 3 | source .jenkins.d/util.sh |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 4 | |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame^] | 5 | if has Linux $NODE_LABELS; then |
6 | export PATH="${HOME}/.local/bin${PATH:+:}${PATH}" | ||||
7 | fi | ||||
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 8 | export CACHE_DIR=${CACHE_DIR:-/tmp} |
9 | export WAF_JOBS=${WAF_JOBS:-1} | ||||
10 | [[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes | ||||
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 11 | |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 12 | for file in .jenkins.d/*; do |
Nick G | d69f9a3 | 2016-08-23 11:30:02 -0500 | [diff] [blame] | 13 | [[ -f $file && -x $file ]] || continue |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 14 | |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame^] | 15 | if [[ -n $GITHUB_ACTIONS ]]; then |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 16 | label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/') |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame^] | 17 | echo "::group::${label}" |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 18 | fi |
19 | |||||
20 | echo "\$ $file" | ||||
Nick G | d69f9a3 | 2016-08-23 11:30:02 -0500 | [diff] [blame] | 21 | "$file" |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 22 | |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame^] | 23 | if [[ -n $GITHUB_ACTIONS ]]; then |
24 | echo "::endgroup::" | ||||
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 25 | fi |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 26 | done |