diff --git a/build.py b/build.py index 3f37fba0664d9a5ae0e3643c812171edc9b37e2f..7371c5b06960fa78700bb625bfb5d40dbf8b2347 100644 --- a/build.py +++ b/build.py @@ -1,22 +1,8 @@ -import os -import sys - - -def system(command): - retcode = os.system(command) - if retcode != 0: - raise Exception("Error while executing:\n\t %s" % command) - +from cpt.packager import ConanMultiPackager if __name__ == "__main__": - params = " ".join(sys.argv[1:]) - system('conan create . tuebel/testing -s build_type=Debug {}'.format( - params)) - system('conan create . tuebel/testing -s build_type=Release {}'.format( - params)) - system(('conan create . tuebel/testing -s build_type=Debug' - ' -o *:shared=True {}').format(params)) - system(('conan create . tuebel/testing -s build_type=Release' - ' -o *:shared=True {}').format(params)) -else: - pass + builder = ConanMultiPackager( + username='tuebel', channel="testing", stable_channel="testing", + gcc_versions=['7'], archs=['x86_64']) + builder.add_common_builds() + builder.run() \ No newline at end of file