From cdf71f40d5643c211cad6c247192f44bb6c976a3 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 22 May 2019 15:05:27 -0700 Subject: [PATCH] Add postbuild script for CI server --- tools/ci-scripts/postbuild.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/ci-scripts/postbuild.py diff --git a/tools/ci-scripts/postbuild.py b/tools/ci-scripts/postbuild.py new file mode 100644 index 0000000000..a1561f6203 --- /dev/null +++ b/tools/ci-scripts/postbuild.py @@ -0,0 +1,20 @@ +# Post build script +import os +import sys + +SOURCE_PATH = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..', '..')) +BUILD_PATH = os.path.join(SOURCE_PATH, 'build') + +# FIXME move the helper python modules somewher other than the root of the repo +sys.path.append(SOURCE_PATH) + +import hifi_utils + +#for var in sys.argv: +# print("{}".format(var)) + +#for var in os.environ: +# print("{} = {}".format(var, os.environ[var])) + +print("Create ZIP version of installer archive") +hifi_utils.executeSubprocess(['cpack', '-G', 'ZIP'], folder=BUILD_PATH)