try ConanMultiPacker

This commit is contained in:
Balazs Benics 2019-07-28 15:37:33 +02:00
parent 1400b612c1
commit c6c6112161
2 changed files with 20 additions and 4 deletions

View file

@ -3,6 +3,15 @@ build: false
environment:
PYTHON: "C:\\Python37"
CONAN_UPLOAD: "https://api.bintray.com/conan/steakhal/development"
CONAN_BUILD_POLICY: "missing"
CONAN_USERNAME: "steakhal"
CONAN_DOCKER_32_IMAGES: 1
CONAN_CHANNEL: "testing"
# CONAN_UPLOAD_DEPENDENCIES="all"
CONAN_STABLE_BRANCH_PATTERN: "release/*"
CONAN_UPLOAD_ONLY_WHEN_STABLE: 1
matrix:
- MINGW_CONFIGURATIONS: '7@x86_64@seh@posix, 7@x86@seh@posix, 8@x86_64@seh@posix, 8@x86@seh@posix'
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

View file

@ -1,10 +1,17 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bincrafters import build_template_header_only
from cpt.packager import ConanMultiPackager
if __name__ == "__main__":
builder = build_template_header_only.get_builder()
additional_options = { 'nameof:build_tests': True, 'nameof:build_examples': True }
builder.update_build_if(lambda build: True, new_options=additional_options)
builder = ConanMultiPackager()
builder.add_common_builds()
updated_builds = []
for settings, options, env_vars, build_requires, reference in builder.items:
options['prometheus-cpp:mode'] = 'pull'
updated_builds.append([settings, options, env_vars, build_requires])
options = options.copy()
options['prometheus-cpp:mode'] = 'push'
updated_builds.append([settings, options, env_vars, build_requires])
builder.builds = updated_builds
builder.run()