Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs
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
docs
Commits
4c7e4779
Commit
4c7e4779
authored
2 years ago
by
André MAYORAZ
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Perform a mem profile during doc building
parent
4b3f40f0
No related branches found
No related tags found
No related merge requests found
Pipeline
#64881
failed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+87
-1
87 additions, 1 deletion
.gitlab-ci.yml
with
87 additions
and
1 deletion
.gitlab-ci.yml
+
87
−
1
View file @
4c7e4779
include
:
'
https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/data/gitlab-ci/docs.yaml'
# This YAML file contains descriptions for the CI of most of our Bob/BEAT/BATL
# packages - do **not** modify it unless you know what you're doing (and up
# to!)
# Definition of global variables (all stages)
variables
:
PYTHONUNBUFFERED
:
"
1"
CONDA_ROOT
:
"
${CI_PROJECT_DIR}/miniconda"
BOOTSTRAP
:
"
https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py"
TORCH_HOME
:
"
${CI_PROJECT_DIR}/torch"
# The version of cuda at Idiap
CONDA_OVERRIDE_CUDA
:
"
11.6"
# Definition of our build pipeline order
stages
:
-
build
-
deploy
# All stages are prepared the same, with a base set of commands
.bootstrap
:
tags
:
-
bob
-
docker
image
:
quay.io/condaforge/linux-anvil-cos7-x86_64
before_script
:
-
curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
-
python3 bootstrap.py -vv channel base
-
source ${CONDA_ROOT}/etc/profile.d/conda.sh
-
conda activate base
-
conda install memory_profiler -c conda-forge
-
if [[ $CI_RUNNER_TAGS == *"docker,"* ]]; then git config --global --add safe.directory ${CI_PROJECT_DIR}; fi
-
conda clean --all
cache
:
paths
:
-
torch
# Build target
build
:
extends
:
.bootstrap
stage
:
build
variables
:
GITLAB_CHECKOUT_STRATEGY
:
"
https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/"
PYTHON_VERSION
:
"
3.9"
BUILD_EGG
:
"
true"
script
:
-
mprof -o mem_profile.dat run bdt ci docs -vv packages.txt
-
if [[ $? -ne 0 ]]; then cat mem_profile.dat ; fi
-
bdt ci clean -vv
artifacts
:
expire_in
:
1 week
paths
:
-
sphinx
-
${CONDA_ROOT}/conda-bld/linux-64/*.conda
-
${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
cache
:
key
:
"
build"
# Deploy target
.deploy
:
extends
:
.bootstrap
stage
:
deploy
script
:
-
bdt ci deploy -vv
-
bdt ci clean -vv
dependencies
:
-
build
cache
:
key
:
"
deploy"
deploy_beta
:
extends
:
.deploy
environment
:
beta
only
:
-
master
-
main
deploy_stable
:
extends
:
.deploy
environment
:
stable
only
:
-
/^v\d+\.\d+\.\d+([abc]\d*)?$/
# PEP-440 compliant version (tags)
except
:
-
branches
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