Only map HOME when in CI

This commit is contained in:
Michael Vines 2018-07-30 16:07:58 -07:00
parent 102510ac0e
commit 5a40ea3fd7
1 changed files with 5 additions and 2 deletions

View File

@ -22,11 +22,14 @@ shift
ARGS=( ARGS=(
--workdir /solana --workdir /solana
--volume "$PWD:/solana" --volume "$PWD:/solana"
--volume "$HOME:/home"
--env "CARGO_HOME=/home/.cargo"
--rm --rm
) )
if [[ -n $CI ]]; then
ARGS+=(--volume "$HOME:/home")
ARGS+=(--env "CARGO_HOME=/home/.cargo")
fi
# kcov tries to set the personality of the binary which docker # kcov tries to set the personality of the binary which docker
# doesn't allow by default. # doesn't allow by default.
ARGS+=(--security-opt "seccomp=unconfined") ARGS+=(--security-opt "seccomp=unconfined")