Files
ndn-traffic-generator/.jenkins
T
Davide Pesavento ab6ac5d6dc Sync build system and CI scripts with ndn-cxx
* Update build flags
 * Update waf to version 2.0.21
 * Replace Travis CI with GitHub Actions

Change-Id: If45c45c7b9ed748ffd1c4e792075f6bb6f09462f
2021-10-05 23:42:23 -04:00

27 lines
610 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source .jenkins.d/util.sh
if has Linux $NODE_LABELS; then
export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
fi
export CACHE_DIR=${CACHE_DIR:-/tmp}
export WAF_JOBS=${WAF_JOBS:-1}
[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
for file in .jenkins.d/*; do
[[ -f $file && -x $file ]] || continue
if [[ -n $GITHUB_ACTIONS ]]; then
label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
echo "::group::${label}"
fi
echo "\$ $file"
"$file"
if [[ -n $GITHUB_ACTIONS ]]; then
echo "::endgroup::"
fi
done