Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
f77e616c
Commit
f77e616c
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
point to our template in check error
parent
0a17a56d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#54747
failed
3 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/devtools/scripts/ci.py
+5
-3
5 additions, 3 deletions
bob/devtools/scripts/ci.py
bob/devtools/templates/conda/meta.yaml
+0
-2
0 additions, 2 deletions
bob/devtools/templates/conda/meta.yaml
conda/meta.yaml
+3
-5
3 additions, 5 deletions
conda/meta.yaml
with
8 additions
and
10 deletions
bob/devtools/scripts/ci.py
+
5
−
3
View file @
f77e616c
...
...
@@ -1026,11 +1026,13 @@ def check():
if
os
.
path
.
isfile
(
path
):
with
open
(
path
)
as
f
:
content
=
f
.
read
()
if
'
-
"
{{ PYTHON }} -m pip install . -vv
"'
not
in
content
:
if
(
'
-
"
{{ PYTHON }} -m pip install . -vv
"'
not
in
content
or
"
- pip {{ pip }}
"
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
"""
Please see bob/devtools/templates/conda/meta.yaml for a template.
"""
)
# if there is a pre-commit configuration file, run the tests
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/templates/conda/meta.yaml
+
0
−
2
View file @
f77e616c
...
...
@@ -48,7 +48,6 @@ test:
imports
:
-
{{
name
}}
commands
:
-
pip check
# runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
-
pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
...
...
@@ -57,7 +56,6 @@ test:
-
conda inspect linkages -p $PREFIX {{ name }}
# [not win]
-
conda inspect objects -p $PREFIX {{ name }}
# [osx]
requires
:
-
pip {{ pip }}
-
pytest {{ pytest }}
-
pytest-cov {{ pytest_cov }}
-
coverage {{ coverage }}
...
...
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
3
−
5
View file @
f77e616c
...
...
@@ -56,14 +56,12 @@ requirements:
test
:
requires
:
-
pip
-
sphinx_rtd_theme
-
pytest
-
pytest-cov
-
sphinx_rtd_theme {{ sphinx_rtd_theme }}
-
pytest {{ pytest }}
-
pytest-cov {{ pytest_cov }}
imports
:
-
{{
name
}}
commands
:
-
pip check
-
bdt -h
-
bdt -?
-
bdt --help
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment