Only map HOME when in CI
This commit is contained in:
parent
102510ac0e
commit
5a40ea3fd7
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue