-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
26 lines (19 loc) · 1010 Bytes
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
from conan.packager import ConanMultiPackager
from conanfile import QuerysetCPP
username = os.getenv("CONAN_USERNAME", "jgsogo")
reference = os.getenv("CONAN_REFERENCE", "{}/{}".format(QuerysetCPP.name, QuerysetCPP.version))
if __name__ == "__main__":
builder = ConanMultiPackager(username=username,
reference=reference,
args = "--scope queryset-cpp:BUILD_TEST=1 --build=missing",
stable_branch_pattern="master"
)
builder.add_common_builds(shared_option_name="queryset-cpp:shared")
filtered_builds = []
for settings, options, env_vars, build_requires in builder.builds:
if settings["arch"] == "x86_64" and settings["build_type"] == "Release":
filtered_builds.append([settings, options, env_vars, build_requires])
builder.builds = filtered_builds
print("{} builds ahead!".format(len(builder.builds)))
builder.run()