Uh oh!
There was an error while loading. Please reload this page.
Allows build to fail if JSON docs fail to generate. - #2122
Conversation
dhermes
commented
Aug 18, 2016
If you put it in |
92c2ba2 to
86ad4e0Comparedaspecster
commented
Aug 18, 2016
@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. |
dhermes
commented
Aug 18, 2016
It's not. Are you deploying on PRs or just merges? |
dhermes
commented
Aug 18, 2016
You'll have to apply the |
daspecster
commented
Aug 18, 2016
Yup, thanks! |
dhermes
commented
Aug 18, 2016
I assume / hope the Yup wasn't for "Are you deploying on PRs or just merges?" |
daspecster
commented
Aug 18, 2016
Apparently it is! I'm fixing that right now. |
dhermes
commented
Aug 18, 2016
Oy |
How does Update: nm I see the |
dhermes
commented
Aug 18, 2016
It doesn't, https://readthedocs.org/projects/gcloud-python/ looks for commits to master and triggers a build. The relevant file was |
daspecster
commented
Aug 18, 2016
A while ago, I made a separate script for the JSON docs, |
dhermes
commented
Aug 18, 2016
Looking at https://github.com/GoogleCloudPlatform/gcloud-python/commits/master/.travis.yml it looks like |
a45efab to
d1cca88Comparedaspecster
commented
Aug 18, 2016
I guess I had more coffee in me back then. |
d1cca88 to
339240bComparedhermes
commented
Aug 18, 2016
It doesn't look like |
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 I added that line as well. |
493ecfd to
c313c95Compare| } | ||
| # Run this to verifiy that the docs build successfully. | ||
| tox -e docs |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Aug 18, 2016
|
I didn't change
So I think it should be ok? Except for my refactor now failing. |
c313c95 to
996c13bComparedaspecster
commented
Aug 18, 2016
@dhermes updated! Looks like it worked. |
| buildDocs $TRAVIS_BRANCH | ||
| if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then | ||
| buildDocs $TRAVIS_BRANCH |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| # Run this to verifiy that the docs build successfully. | ||
| buildDocs $TRAVIS_BRANCH |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
5ff3b1f to
470e085Compare| if [[ ! -z ${TRAVIS_TAG} ]]; then | ||
| DOC_VERSION = $TRAVIS_TAG | ||
| else | ||
| DOC_VERSION = $TRAVIS_BRANCH |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
470e085 to
2065153Comparedhermes
commented
Aug 18, 2016
@daspecster This LGTM except for the tiny nit about using |
dhermes
commented
Aug 18, 2016
You can merge once you've fixed the nit and Travis goes green, no need to check with me |
2065153 to
e41090dComparee41090d to
bbed6b0CompareCo-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@dhermes what do you think of moving the documentation generation to
after_success?Fixes#2121