Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.buildout
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.buildout
Commits
c885fd0b
Commit
c885fd0b
authored
3 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Try python-only builds
parent
788a9ced
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!43
[ci] Try python-only builds
Pipeline
#55343
failed
3 years ago
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+134
-1
134 additions, 1 deletion
.gitlab-ci.yml
tox.ini
+8
-0
8 additions, 0 deletions
tox.ini
with
143 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
c885fd0b
...
@@ -20,3 +20,4 @@ src/
...
@@ -20,3 +20,4 @@ src/
record.txt
record.txt
.coverage
.coverage
coverage.xml
coverage.xml
.tox/
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
134
−
1
View file @
c885fd0b
include
:
'
https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/data/gitlab-ci/single-package.yaml'
# This YAML file contains descriptions for the CI of python-only packages
# - do **not** modify it unless you know what you're doing (and up to!)
# Definition of global variables (all stages)
variables
:
PYTHONUNBUFFERED
:
"
1"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PRE_COMMIT_HOME
:
"
${CI_PROJECT_DIR}/.cache/pre-commit"
# Definition of our build pipeline order
stages
:
-
build
-
test
-
deploy
-
pypi
# Build targets
build
:
image
:
python:latest
tags
:
-
docker
stage
:
build
before_script
:
-
pip install twine pre-commit sphinx sphinx-rtd-theme
script
:
-
[
-r ".pre-commit-config.yaml"
]
&&
pre-commit run --all-files --show-diff-on-failure --verbose
-
python setup.py sdist --formats=zip
-
twine check dist/*.zip
-
pip install -e .
-
[
-e doc
]
&&
sphinx-build doc sphinx
artifacts
:
paths
:
-
dist/*.zip
-
sphinx
expire_in
:
1 week
cache
:
key
:
"
build-py"
cache
:
paths
:
-
${PRE_COMMIT_HOME}
-
${PIP_CACHE_DIR}
# Test targets
.test_template
:
tags
:
-
docker
stage
:
test
before_script
:
-
pip install tox
-
pip install -e .
cache
:
key
:
"
test-py"
cache
:
paths
:
-
${PIP_CACHE_DIR}
test_py38
:
extends
:
.test_template
image
:
python:3.8
script
:
-
tox -e py38
test_py39
:
extends
:
.test_template
image
:
python:3.9
script
:
-
tox -e py39
test_py310
:
extends
:
.test_template
image
:
python:3.10
script
:
-
tox -e py310
.deploy_template
:
image
:
python:latest
tags
:
-
docker
stage
:
deploy
dependencies
:
-
test_py38
-
test_py39
-
test_py310
-
build
before_script
:
-
pip install git+https://gitlab.idiap.ch/bob/bob.devtools#egg=bob.devtools twine
script
:
-
bdt ci deploy -vv
deploy_beta
:
extends
:
.deploy_template
environment
:
beta
only
:
-
master
deploy_stable
:
extends
:
.deploy_template
environment
:
stable
only
:
-
/^v\d+\.\d+\.\d+([abc]\d*)?$/
# PEP-440 compliant version (tags)
except
:
-
branches
pypi
:
image
:
python:latest
tags
:
-
docker
stage
:
pypi
environment
:
pypi
only
:
refs
:
-
/^v\d+\.\d+\.\d+([abc]\d*)?$/
# PEP-440 compliant version (tags)
variables
:
-
$CI_PROJECT_VISIBILITY == "public"
except
:
-
branches
dependencies
:
-
test_py38
-
test_py39
-
test_py310
-
build
before_script
:
-
pip install twine
script
:
-
twine --skip-existing --username=${PYPIUSER} --password=${PYPIPASS} dist/*.zip
cache
:
paths
:
-
${PIP_CACHE_DIR}
This diff is collapsed.
Click to expand it.
tox.ini
0 → 100644
+
8
−
0
View file @
c885fd0b
[tox]
envlist
=
py38,py39,py310
[testenv]
deps
=
pytest-cov
pytest-sphinx
commands
=
pytest --verbose --doctest-modules --cov bob.buildout --cov-report term-missing --cov-report html:sphinx/coverage --cov-report xml:coverage.xml bob/buildout
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