get_makepkg_env(): filter out CI variables
This commit is contained in:
parent
6917347219
commit
b13b00e85b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ pacman_cmd = [
|
||||||
def get_makepkg_env():
|
def get_makepkg_env():
|
||||||
# has to be a function because calls to `config` must be done after config file was read
|
# has to be a function because calls to `config` must be done after config file was read
|
||||||
threads = config.file['build']['threads'] or multiprocessing.cpu_count()
|
threads = config.file['build']['threads'] or multiprocessing.cpu_count()
|
||||||
return os.environ.copy() | {
|
return {key: val for key, val in os.environ.items() if not key.split('_', maxsplit=1)[0] in ['CI', 'GITLAB', 'FF']} | {
|
||||||
'LANG': 'C',
|
'LANG': 'C',
|
||||||
'CARGO_BUILD_JOBS': str(threads),
|
'CARGO_BUILD_JOBS': str(threads),
|
||||||
'MAKEFLAGS': f"-j{threads}",
|
'MAKEFLAGS': f"-j{threads}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue