try ConanMultiPacker
This commit is contained in:
parent
1400b612c1
commit
c6c6112161
2 changed files with 20 additions and 4 deletions
|
@ -3,6 +3,15 @@ build: false
|
||||||
environment:
|
environment:
|
||||||
PYTHON: "C:\\Python37"
|
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:
|
matrix:
|
||||||
- MINGW_CONFIGURATIONS: '7@x86_64@seh@posix, 7@x86@seh@posix, 8@x86_64@seh@posix, 8@x86@seh@posix'
|
- 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
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
|
15
build.py
15
build.py
|
@ -1,10 +1,17 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from bincrafters import build_template_header_only
|
from cpt.packager import ConanMultiPackager
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
builder = build_template_header_only.get_builder()
|
builder = ConanMultiPackager()
|
||||||
additional_options = { 'nameof:build_tests': True, 'nameof:build_examples': True }
|
builder.add_common_builds()
|
||||||
builder.update_build_if(lambda build: True, new_options=additional_options)
|
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()
|
builder.run()
|
||||||
|
|
Loading…
Reference in a new issue