Skip to content
Snippets Groups Projects
Commit 94337107 authored by nimrod's avatar nimrod
Browse files

Repeatable-ish builds.

Repeatable builds, except for variations in dependencies.
parent ce81f558
No related branches found
No related tags found
No related merge requests found
Pipeline #2583 passed
...@@ -21,7 +21,7 @@ Generate payload: ...@@ -21,7 +21,7 @@ Generate payload:
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
before_script: before_script:
- apt-get update - apt-get update
- apt-get install -y zip - apt-get install -y strip-nondeterminism zip
script: script:
make payload.zip make payload.zip
artifacts: artifacts:
......
...@@ -5,7 +5,8 @@ payload.zip: clean requirements.txt $(src) ...@@ -5,7 +5,8 @@ payload.zip: clean requirements.txt $(src)
mkdir -p payload mkdir -p payload
cp -a src/* payload/ cp -a src/* payload/
python3 -m pip install -r requirements.txt -t 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 .PHONY = clean
clean: clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment