Skip to content

Commit

Permalink
add post_status method for BuildBotConfig to throw on Documenter delo…
Browse files Browse the repository at this point in the history
…y errors
  • Loading branch information
IanButterworth committed Feb 15, 2021
1 parent 2eeef2e commit 5104662
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,20 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs
end
return Documenter.DeployDecision(; all_ok=false)
end
function Documenter.post_status(::BuildBotConfig; type, repo::String, subfolder=nothing, kwargs...)
if type == "pending"
@info "Documentation build in progress"
elseif type == "success"
@info "Documentation build succeeded"
elseif type == "error"
error("Documentation build errored")
elseif type == "failure"
error("Documentation build failed")
else
error("unsupported status type: $type")
end
end


const devurl = "v$(VERSION.major).$(VERSION.minor)-dev"

Expand Down

0 comments on commit 5104662

Please sign in to comment.