-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Allows build to fail if JSON docs fail to generate. #2122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
If you put it in |
92c2ba2 to
86ad4e0
Compare
|
@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. |
It's not. Are you deploying on PRs or just merges? |
|
You'll have to apply the |
|
Yup, thanks! |
|
I assume / hope the Yup wasn't for "Are you deploying on PRs or just merges?" |
|
Apparently it is! I'm fixing that right now. |
|
Oy |
|
How does Update: nm I see the |
|
It doesn't, https://readthedocs.org/projects/gcloud-python/ looks for commits to master and triggers a build. The relevant file was |
|
A while ago, I made a separate script for the JSON docs, |
|
Looking at https://github.com/GoogleCloudPlatform/gcloud-python/commits/master/.travis.yml it looks like |
a45efab to
d1cca88
Compare
|
I guess I had more coffee in me back then. |
d1cca88 to
339240b
Compare
|
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
c313c95
Compare
scripts/update_json_docs.sh
Outdated
| } | ||
|
|
||
| # 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
|
I didn't change
So I think it should be ok? Except for my refactor now failing. |
c313c95 to
996c13b
Compare
|
@dhermes updated! Looks like it worked. |
scripts/update_json_docs.sh
Outdated
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
scripts/update_json_docs.sh
Outdated
| } | ||
|
|
||
| # 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.
5ff3b1f to
470e085
Compare
scripts/update_json_docs.sh
Outdated
| 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.
470e085 to
2065153
Compare
|
@daspecster This LGTM except for the tiny nit about using |
|
You can merge once you've fixed the nit and Travis goes green, no need to check with me |
2065153 to
e41090d
Compare
e41090d to
bbed6b0
Compare
@dhermes what do you think of moving the documentation generation to
after_success?Fixes #2121