[tracker/sam/website-deps: 18/18] website: Add extra checks and logs to build script
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/website-deps: 18/18] website: Add extra checks and logs to build script
- Date: Tue, 21 Apr 2020 22:03:27 +0000 (UTC)
commit 18808d03f932526fcd692b29d6641d54cc164fda
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Apr 21 22:32:32 2020 +0200
website: Add extra checks and logs to build script
To discover why the job is not publishing the documentation as it
should.
docs/website/build.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/docs/website/build.py b/docs/website/build.py
index 4d70b87e7..42c2b133f 100755
--- a/docs/website/build.py
+++ b/docs/website/build.py
@@ -190,7 +190,12 @@ def main():
apidocs_dest = output_path.joinpath('docs/api-preview')
apidocs_dest.mkdir(parents=True)
for name in ['libtracker-sparql3', 'tracker3-nepomuk']:
- shutil.copytree(apidocs_src.joinpath(name), apidocs_dest.joinpath(name))
+ src = apidocs_src.joinpath(name)
+ dest = apidocs_dest.joinpath(name)
+ if not src.exists():
+ raise RuntimeError("Expected path {} doesn't exist.".format(src))
+ log.info(" - Copying %s to %s", src, dest)
+ shutil.copytree(src, dest)
log.info("Adding preview header to API reference documentation")
text = apidocs_header(args.tracker_commit)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]