Created
August 28, 2020 07:50
-
-
Save czoido/05874e29325d33fc2a84c68e48df6c9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
def run(cmd): | |
ret = os.system(cmd) | |
if ret != 0: | |
raise Exception("Failed command: %s" % cmd) | |
def main(): | |
for pkg_major in range(1, 5): | |
for pkg_minor in range(1, 1000): | |
pkg_name = "pkg/{}.{}".format(pkg_major, pkg_minor) | |
run("conan create . {}@user/channel".format(pkg_name)) | |
run("conan upload {} -r artifactory --all -c".format(pkg_name)) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment