Commit 3f659272 authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

changed process to verify existing pinned requirements

parent ddcebcc0
Pipeline #69590 failed with stages
in 51 minutes and 1 second
......@@ -75,14 +75,11 @@ verify_existing_requirements:
- pip3 install --upgrade pip-tools
- pip-compile --output-file requirements.ref
- pip-compile --output-file requirements_dev.ref
- pip-compile
- pip-compile
# checking difference between existing requirements and the newly generated one
# and using the number of lines as exit status code
- |
delta=$(diff -u requirements.txt requirements.ref | tee /dev/fd/2 | wc -l)
delta_dev=$(diff -u requirements_dev.txt requirements_dev.ref | tee /dev/fd/2 | wc -l)
exit $(expr "$delta" + "$delta_dev")
- exit $(git status -s | grep -e "^ M " | wc -l)
when: always
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment