[tracker/sam/website-deps] website: Add extra checks and logs to build script



commit e29ce6ac08c3eceae82a7bcf3bbf8e33702e8503
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..c282ae6e3 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", src)
+        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]