Commit 7e6cca9f authored by Duncan Macleod's avatar Duncan Macleod

docs: another attempt to fix the broken docs build

parent db53e84f
Pipeline #47541 failed with stages
in 29 minutes and 10 seconds
......@@ -49,7 +49,8 @@ docs:
- master
# unpack /cvmfs contents into temporary dir
- CONDA_BASE="${CI_PROJECT_DIR}/condaconda"
- mkdir -pv ${CONDA_BASE}
- docker save ${TAG} | tar -x -C ${CONDA_BASE}
......@@ -27,7 +27,8 @@ You can then list the available environments:
which will print something like:
.. program-output:: conda env list
.. this is a hack because the gitlab-ci can't read directly from /cvmfs
.. program-output:: python environments/
You can then activate one of these environments:
#!/usr/bin/env python
import os
import subprocess
TEMPLATE_DIR = os.path.join(
os.getenv('CI_PROJECT_DIR', ''),
CVMFS_DIR = os.getenv(
output = subprocess.check_output(['conda', 'env', 'list']).decode()
print(output.replace(TEMPLATE_DIR, CVMFS_DIR))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment