package_pipeline(ci, url, branch=revision, lockfile=lockfile, upload="master") ci.run( "conan install app/[~1.0]@user/testing --lockfile -g=deploy") ci.run(r".\app\bin\main_app.exe") # Create 3 repos in the server git_server = User("git_server") repos_urls = {} for pkg in ("hello", "chat", "app"): git_server.cd(pkg) repos_urls[pkg] = git_server.current_folder git_server.git_init(readme=True) git_server.run("git config --bool core.bare true") # User bob puts some code and create packages bob = User("bob") for pkg in ("hello", "chat", "app"): repo = repos_urls[pkg] bob.git_clone(repo) bob.cd(pkg) bob.copy_code("sources/%s" % pkg) bob.git_commit() bob.git_push() # Every push fires a package pipeline package_pipeline(ci_server, repo, branch="master", upload="master")
ci.run("conan user admin -p=password -r=master") with chdir(job_folder): ci.run("git clone %s" % repository) repo_folder = os.path.basename(repository) with chdir(repo_folder): ci.run("git checkout %s" % branch) ci.run("conan create . user/testing") if branch == "master": ci.run("conan upload * -r=master --all --confirm") # Create 3 repos in the server git_server = User("git_server") repos_urls = {} for pkg in ("hello", "chat", "app"): git_server.cd(pkg) repos_urls[pkg] = git_server.current_folder git_server.git_init(readme=True) git_server.run("git config --bool core.bare true") # User bob puts some code and create packages bob = User("bob") for pkg in ("hello", "chat", "app"): repo = repos_urls[pkg] bob.git_clone(repo) bob.cd(pkg) bob.copy_code("sources/%s" % pkg) # bob.local_build() # bob.conan_create() bob.git_commit() bob.git_push()