Open mschmidt87 opened 4 years ago
I ran into a similar issue on GitLab CI.
It turns out only remote branches were available (checked by adding git for-each-ref --format '%(objectname) %(refname) %(creatordate:iso)' refs
to my ci script), and smv_remote_whitelist
was not set in my configuration, disallowing all remote branches by default.
After setting smv_remote_whitelist = r'^(origin)$'
, the documentation is deployed as expected.
Hopefully that might help!
As an aside, @Holzhaus: is there a way to enable debug logging through a command-line switch? This would have helped narrow down the issue.
@opcon not the author, but having looked at the code it doesn't appear so. If you're willing to put a PR together it would be trivial to add an argparse
option and proxy it to sphinx-build
, which accepts a -P
flag to start a pdb session if an exception is raised.
So, the underlying issue was a missing whitelist entry?
Hi, I am trying to switch our documentation build from normal sphinx to
sphinx-multiversion
. Locally, I can run everything just fine, but the deployment using Travis fails. This is the output of my job on Travis: https://travis-ci.org/github/Happy-Algorithms-League/hal-cgp/jobs/743167629I am trying to build the documentation for the
master
branch and for one release tag (0.2.0
) but it fails to find both, if I understand correctly (error message saying:I thought that I might need to fetch all tags explicitly, that's why I added a
git fetch --all --tags
to the.travis.yml
but that didn't help.This is the complete travis config file: https://github.com/Happy-Algorithms-League/hal-cgp/blob/sphinx_doc/multi_version/.travis.yml
and the actual documentation build is done in a
deploy.sh
script, which is:where my Makefile then executes (inside the
docs/
folder):This is using the latest release (0.2.4).