mirror of
https://github.com/boostorg/boost.git
synced 2025-04-07 22:39:25 +00:00
[circleci] Seems we need to create the wrapper script on all nodes as
the home dir is not shared for all nodes.
This commit is contained in:
parent
29062f7603
commit
e5f95a2ff4
1 changed files with 9 additions and 9 deletions
18
circle.yml
18
circle.yml
|
@ -10,19 +10,19 @@ machine:
|
|||
EOL_N: NA NA LF CRLF
|
||||
pre:
|
||||
- |
|
||||
df
|
||||
ls -laF "${HOME}"
|
||||
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_common.py" -P ${HOME}
|
||||
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_library_check.py" -P ${HOME}
|
||||
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_release.py" -P ${HOME}
|
||||
wget "https://raw.githubusercontent.com/boostorg/release-tools/develop/ci_boost_status.py" -P ${HOME}
|
||||
if [ ${CIRCLE_NODE_INDEX} -eq 0 ]; then
|
||||
echo '#!/bin/sh' > ${HOME}/script.sh
|
||||
echo 'export SCRIPT_N=(${SCRIPT_N})' >> "${HOME}/script.sh"
|
||||
echo 'export SCRIPT=${SCRIPT_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
|
||||
echo 'export EOL_N=(${EOL_N})' >> "${HOME}/script.sh"
|
||||
echo 'export EOL=${EOL_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
|
||||
echo 'python "${HOME}/${SCRIPT}" "$@"' >> "${HOME}/script.sh"
|
||||
chmod +x "${HOME}/script.sh"
|
||||
fi
|
||||
echo '#!/bin/sh' > ${HOME}/script.sh
|
||||
echo 'export SCRIPT_N=(${SCRIPT_N})' >> "${HOME}/script.sh"
|
||||
echo 'export SCRIPT=${SCRIPT_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
|
||||
echo 'export EOL_N=(${EOL_N})' >> "${HOME}/script.sh"
|
||||
echo 'export EOL=${EOL_N[$CIRCLE_NODE_INDEX]}' >> "${HOME}/script.sh"
|
||||
echo 'python "${HOME}/${SCRIPT}" "$@"' >> "${HOME}/script.sh"
|
||||
chmod +x "${HOME}/script.sh"
|
||||
post:
|
||||
- exec "${HOME}/script.sh" machine_post
|
||||
checkout:
|
||||
|
|
Loading…
Add table
Reference in a new issue