blob: 611ce920c5279ba7029ccbcbe64b73976b547b14 [file] [log] [blame]
Bu Sun Kim65e33c02019-10-25 10:45:00 -07001import synthtool as s
2from synthtool import gcp
3
4common = gcp.CommonTemplates()
5
6# ----------------------------------------------------------------------------
7# Add templated files
8# ----------------------------------------------------------------------------
9templated_files = common.py_library(unit_cov_level=100, cov_level=100)
Tres Seaverb76f1512021-08-13 18:37:08 -040010
11
Yoshi Automation Bot218a1592020-07-06 13:59:22 -070012s.move(
13 templated_files / ".kokoro",
14 excludes=[
Bu Sun Kim621f54b2021-01-22 13:43:41 -070015 "continuous/common.cfg",
16 "presubmit/common.cfg",
17 "build.sh",
Yoshi Automation Bot218a1592020-07-06 13:59:22 -070018 ],
19) # just move kokoro configs
gcf-owl-bot[bot]35b198d2021-10-06 11:08:22 -040020s.move(
21 # needed by samples kokoro jobs
22 templated_files / ".trampolinerc"
23)
Tres Seaverb76f1512021-08-13 18:37:08 -040024
25
26assert 1 == s.replace(
27 ".kokoro/docs/docs-presubmit.cfg",
28 'value: "docs docfx"',
29 'value: "docs"',
30)
31
Tres Seaverb76f1512021-08-13 18:37:08 -040032s.shell.run(["nox", "-s", "blacken"], hide_output=False)