Skip to content
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

Build stages deletes data #918

Closed
bramtayl opened this issue Dec 21, 2018 · 2 comments
Closed

Build stages deletes data #918

bramtayl opened this issue Dec 21, 2018 · 2 comments

Comments

@bramtayl
Copy link

The new recommended work flow, to build documentation in a second build stage, seems great, but I'm having some trouble.

I used run makedocs in test/runtests.jl, with root = joinpath(dirname(@__DIR__), "docs") and strict = true. This allowed me to include doctests as part of the regular testing suite, and also have them count for coverage.

That doesn't work anymore; the documentation is entirely deleted and I have to start again in the second build stage. Is there any good solution here?

@mortenpi
Copy link
Member

There is no way to store state between stages (unless you set something up yourself with S3 or something), but build stages is just a recommendation for the common case. You can still keep the old workflow, where you run documentation as part of tests or in after_success:.

In the future, we can hopefully provide a lightweight way to run doctests -- I have a WIP PR for that which I need to get back to (#774).

@bramtayl
Copy link
Author

bramtayl commented Jan 8, 2019

I pretty easy solution is just to put everything inside the /test folder. deploydocs bails if not on travis so that solves that.

@bramtayl bramtayl closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants