Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | set -e | ||||
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 3 | source .jenkins.d/util.sh |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 4 | |
Davide Pesavento | 2c61bad | 2021-08-30 22:40:35 -0400 | [diff] [blame] | 5 | if has Linux $NODE_LABELS; then |
Davide Pesavento | f28a061 | 2021-09-29 23:13:32 -0400 | [diff] [blame] | 6 | export PATH="${HOME}/.local/bin${PATH:+:}${PATH}" |
Davide Pesavento | 2c61bad | 2021-08-30 22:40:35 -0400 | [diff] [blame] | 7 | fi |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 8 | export CACHE_DIR=${CACHE_DIR:-/tmp} |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 9 | export WAF_JOBS=${WAF_JOBS:-1} |
Davide Pesavento | 69857c3 | 2020-04-05 16:36:26 -0400 | [diff] [blame] | 10 | [[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes |
Davide Pesavento | 56c68a3 | 2020-03-12 19:26:21 -0400 | [diff] [blame] | 11 | |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 12 | for file in .jenkins.d/*; do |
Alexander Afanasyev | 6077b39 | 2014-12-11 22:56:23 -0800 | [diff] [blame] | 13 | [[ -f $file && -x $file ]] || continue |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 14 | |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 15 | if [[ -n $GITHUB_ACTIONS ]]; then |
Davide Pesavento | f28a061 | 2021-09-29 23:13:32 -0400 | [diff] [blame] | 16 | label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/') |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 17 | echo "::group::${label}" |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 18 | fi |
19 | |||||
20 | echo "\$ $file" | ||||
Alexander Afanasyev | 6077b39 | 2014-12-11 22:56:23 -0800 | [diff] [blame] | 21 | "$file" |
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 22 | |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 23 | if [[ -n $GITHUB_ACTIONS ]]; then |
24 | echo "::endgroup::" | ||||
Davide Pesavento | 4bd4f71 | 2019-10-09 01:02:45 -0400 | [diff] [blame] | 25 | fi |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 26 | done |