| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
If you put it in after_success it won't fail the build if there's a problem |
Sorry, something went wrong.
|
@dhermes switched them back around. If I understand correctly though, even if the unittests fail, the docs will still get deployed. I don't know if that's the best case. |
Sorry, something went wrong.
It's not. Are you deploying on PRs or just merges? |
Sorry, something went wrong.
|
You'll have to apply the **kwargs fix from #2071 |
Sorry, something went wrong.
|
Yup, thanks! |
Sorry, something went wrong.
|
I assume / hope the Yup wasn't for "Are you deploying on PRs or just merges?" |
Sorry, something went wrong.
|
Apparently it is! I'm fixing that right now. |
Sorry, something went wrong.
|
Oy |
Sorry, something went wrong.
|
How does tox -e docs deploy to RTD? Is that just from the READTHEDOCS envar? Update: nm I see the docs-rtd now. |
Sorry, something went wrong.
|
It doesn't, https://readthedocs.org/projects/gcloud-python/ looks for commits to master and triggers a build. The relevant file was scripts/update_docs.sh before you implemented the new docs env |
Sorry, something went wrong.
|
A while ago, I made a separate script for the JSON docs, update_json_docs.sh. Travis is calling that now instead of tox -e json-docs directly. |
Sorry, something went wrong.
|
Looking at https://github.com/GoogleCloudPlatform/gcloud-python/commits/master/.travis.yml it looks like tox already does this (#2016) |
Sorry, something went wrong.
|
I guess I had more coffee in me back then. |
Sorry, something went wrong.
|
It doesn't look like update_json_docs.sh checks if the docs build during a PR |
Sorry, something went wrong.
|
That should run it every time, or were there some cases that you didn't want the docs to build? Also, should I have it build the RTD docs with tox -e docs? I added that line as well. |
Sorry, something went wrong.
| } | ||
|
|
||
| # Run this to verifiy that the docs build successfully. | ||
| tox -e docs |
|
tox -e docs has been changed by you (previously) to update_json_docs.sh, which now calls tox -e docs, thus creating an infinite recursion. tox -e docs-rtd makes sure the docs actually build with Sphinx (which is the concern) |
Sorry, something went wrong.
|
I didn't change tox -e docs, I added tox -e json-docs. [testenv:docs] [testenv:json-docs] So I think it should be ok? Except for my refactor now failing. generate_json_docs.py: error: argument --tag: expected one argument |
Sorry, something went wrong.
|
@dhermes updated! Looks like it worked. |
Sorry, something went wrong.
| buildDocs $TRAVIS_BRANCH | ||
|
|
||
| if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then | ||
| buildDocs $TRAVIS_BRANCH |
| } | ||
|
|
||
| # Run this to verifiy that the docs build successfully. | ||
| buildDocs $TRAVIS_BRANCH |
| if [[ ! -z ${TRAVIS_TAG} ]]; then | ||
| DOC_VERSION = $TRAVIS_TAG | ||
| else | ||
| DOC_VERSION = $TRAVIS_BRANCH |
|
@daspecster This LGTM except for the tiny nit about using ${...}. Please squash and rename the PR to actually state what is happening |
Sorry, something went wrong.
|
You can merge once you've fixed the nit and Travis goes green, no need to check with me |
Sorry, something went wrong.
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
@dhermes what do you think of moving the documentation generation to after_success?
Fixes #2121