Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
3f659272
Commit
3f659272
authored
Oct 04, 2021
by
Alexandre Vincent
Browse files
changed process to verify existing pinned requirements
parent
ddcebcc0
Pipeline
#69590
failed with stages
in 51 minutes and 1 second
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3f659272
...
@@ -75,14 +75,11 @@ verify_existing_requirements:
...
@@ -75,14 +75,11 @@ verify_existing_requirements:
-
pip3 install --upgrade pip-tools
-
pip3 install --upgrade pip-tools
script
:
script
:
-
pip-compile requirements.in
--output-file requirements.ref
-
pip-compile requirements.in
-
pip-compile requirements_dev.in
--output-file requirements_dev.ref
-
pip-compile requirements_dev.in
# checking difference between existing requirements and the newly generated one
# checking difference between existing requirements and the newly generated one
# and using the number of lines as exit status code
# and using the number of lines as exit status code
-
|
-
exit $(git status -s | grep -e "^ M " | wc -l)
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")
artifacts
:
artifacts
:
when
:
always
when
:
always
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment