Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
c34eba6e
Commit
c34eba6e
authored
Oct 05, 2021
by
Amir MOHAMMADI
Browse files
Merge branch 'pip' into 'master'
Add a check for python -m pip install line See merge request
!252
parents
f4cd17bf
b9b5ac9d
Pipeline
#54688
passed with stages
in 19 minutes and 6 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/data/gitlab-ci/noarch.yaml
View file @
c34eba6e
...
...
@@ -26,7 +26,7 @@ stages:
-
python3 bootstrap.py -vv channel base
-
source ${CONDA_ROOT}/etc/profile.d/conda.sh
# for conda inspect during builds (on macos)
-
cond
a install -n base conda-build
-
mamb
a install -n base conda-build
-
conda activate base
-
bdt ci check -vv
cache
:
...
...
bob/devtools/data/gitlab-ci/single-package.yaml
View file @
c34eba6e
...
...
@@ -26,7 +26,7 @@ stages:
-
python3 bootstrap.py -vv channel base
-
source ${CONDA_ROOT}/etc/profile.d/conda.sh
# for conda inspect during builds (on macos)
-
cond
a install -n base conda-build
-
mamb
a install -n base conda-build
-
conda activate base
-
bdt ci check -vv
cache
:
...
...
bob/devtools/scripts/ci.py
View file @
c34eba6e
...
...
@@ -1021,6 +1021,18 @@ def check():
f
"pyprojecttoml"
)
# check if the package uses pip to install itself
path
=
"conda/meta.yaml"
if
os
.
path
.
isfile
(
path
):
with
open
(
path
)
as
f
:
content
=
f
.
read
()
if
'- "{{ PYTHON }} -m pip install . -vv"'
not
in
content
:
raise
RuntimeError
(
f
"""Could not find the pip install line inside the
{
path
}
file.
Please apply similar changes to the
{
path
}
file:
https://gitlab.idiap.ch/bob/bob.extension/-/merge_requests/133/diffs"""
)
# if there is a pre-commit configuration file, run the tests
path
=
".pre-commit-config.yaml"
if
os
.
path
.
isfile
(
path
):
...
...
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