mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
Merge pull request #1859 from deltachat/cancel_build
try harder to let all build processes die when ssh dies
This commit is contained in:
@@ -30,6 +30,8 @@ set +x
|
|||||||
|
|
||||||
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
|
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
||||||
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
||||||
@@ -44,7 +46,7 @@ _HERE
|
|||||||
|
|
||||||
echo "--- Running $CIRCLE_JOB remotely"
|
echo "--- Running $CIRCLE_JOB remotely"
|
||||||
|
|
||||||
ssh -t $SSHTARGET bash "$BUILDDIR/exec_docker_run"
|
ssh $SSHTARGET bash "$BUILDDIR/exec_docker_run"
|
||||||
mkdir -p workspace
|
mkdir -p workspace
|
||||||
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/wheelhouse/*manylinux201*" workspace/wheelhouse/
|
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/wheelhouse/*manylinux201*" workspace/wheelhouse/
|
||||||
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/dist/*" workspace/wheelhouse/
|
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/dist/*" workspace/wheelhouse/
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ echo "--- Running $CIRCLE_JOB remotely"
|
|||||||
|
|
||||||
ssh $SSHTARGET <<_HERE
|
ssh $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
|
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ echo "--- Running $CIRCLE_JOB remotely"
|
|||||||
|
|
||||||
ssh $SSHTARGET <<_HERE
|
ssh $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
|
|||||||
Reference in New Issue
Block a user