mirror of https://github.com/openXC7/prjxray.git
92 lines
1.7 KiB
Python
Executable File
92 lines
1.7 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
db_quick = """\
|
|
# Format: //devtools/kokoro/config/proto/build.proto
|
|
|
|
build_file: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s%(ext)s/.github/kokoro/db-quick.sh"
|
|
|
|
timeout_mins: 180
|
|
|
|
action {
|
|
define_artifacts {
|
|
regex: "**/*result*.xml"
|
|
regex: "**/*.log"
|
|
}
|
|
}
|
|
|
|
env_vars {
|
|
key: "KOKORO_TYPE"
|
|
value: "%(kokoro_type)s"
|
|
}
|
|
|
|
env_vars {
|
|
key: "KOKORO_DIR"
|
|
value: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s%(ext)s"
|
|
}
|
|
|
|
env_vars {
|
|
key: "XRAY_SETTINGS"
|
|
value: "%(part)s"
|
|
}
|
|
|
|
env_vars {
|
|
key: "XRAY_BUILD_TYPE"
|
|
value: "quick"
|
|
}
|
|
"""
|
|
|
|
db_full = """\
|
|
# Format: //devtools/kokoro/config/proto/build.proto
|
|
|
|
build_file: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s-full/.github/kokoro/db-full.sh"
|
|
|
|
timeout_mins: 4320
|
|
|
|
action {
|
|
define_artifacts {
|
|
regex: "**/*result*.xml"
|
|
regex: "**/*.log"
|
|
regex: "database/%(part)s/**"
|
|
}
|
|
}
|
|
|
|
env_vars {
|
|
key: "KOKORO_TYPE"
|
|
value: "%(kokoro_type)s"
|
|
}
|
|
|
|
env_vars {
|
|
key: "KOKORO_DIR"
|
|
value: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s-full"
|
|
}
|
|
|
|
env_vars {
|
|
key: "XRAY_SETTINGS"
|
|
value: "%(part)s"
|
|
}
|
|
|
|
env_vars {
|
|
key: "XRAY_BUILD_TYPE"
|
|
value: "full"
|
|
}
|
|
"""
|
|
|
|
for part in ['artix7', 'kintex7', 'zynq7']:
|
|
with open("continuous-db-%s-quick.cfg" % part, "w") as f:
|
|
f.write(
|
|
db_quick % {
|
|
'part': part,
|
|
'kokoro_type': 'continuous',
|
|
'ext': '-quick'
|
|
})
|
|
with open("continuous-db-%s-full.cfg" % part, "w") as f:
|
|
f.write(db_full % {'part': part, 'kokoro_type': 'continuous'})
|
|
|
|
with open("presubmit-db-%s.cfg" % part, "w") as f:
|
|
f.write(
|
|
db_quick % {
|
|
'part': part,
|
|
'kokoro_type': 'presubmit',
|
|
'ext': ''
|
|
})
|