mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
doc: CI - Clarify how important env -i is and why
Would hopefully have helped me in this case: https://github.com/bitcoin/bitcoin/pull/31176#issuecomment-2526410039
Since then however, fd813bf863 also made sure a minimal environment is used.
This commit is contained in:
@@ -28,8 +28,10 @@ the CI locally you may need to reduce that entropy by running:
|
||||
sudo sysctl -w vm.mmap_rnd_bits=28
|
||||
```
|
||||
|
||||
It is recommended to run the ci system in a clean env. To run the test stage
|
||||
with a specific configuration,
|
||||
It is recommended to run the CI system in a clean environment. The `env -i`
|
||||
command below ensures that *only* specified environment variables are propagated
|
||||
into the local CI.
|
||||
To run the test stage with a specific configuration:
|
||||
|
||||
```
|
||||
env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh'
|
||||
|
||||
Reference in New Issue
Block a user