diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b715644877f20c6881ce0d8aaa4133e850accad..3cd1b7b720f0ba7f3a7be2247138f5fdbb1a918a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ Generate payload: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" before_script: - apt-get update - - apt-get install -y zip + - apt-get install -y strip-nondeterminism zip script: make payload.zip artifacts: diff --git a/Makefile b/Makefile index 2a768b96f4165eb25871400e808c1fb39350b6e4..34e5228435f0b534005db27144a79434fd3348dd 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ payload.zip: clean requirements.txt $(src) mkdir -p payload cp -a src/* payload/ python3 -m pip install -r requirements.txt -t payload - cd payload && zip -X --exclude __pycache__ --exclude "*.pyc" --exclude test --exclude bin -r ../payload.zip ./ + cd payload && zip -X --exclude __pycache__ --exclude "*.pyc" --exclude test --exclude bin -r ../$@ ./ + strip-nondeterminism $@ .PHONY = clean clean: