Bu Sun Kim | 65e33c0 | 2019-10-25 10:45:00 -0700 | [diff] [blame] | 1 | import synthtool as s |
| 2 | from synthtool import gcp |
| 3 | |
| 4 | common = gcp.CommonTemplates() |
| 5 | |
| 6 | # ---------------------------------------------------------------------------- |
| 7 | # Add templated files |
| 8 | # ---------------------------------------------------------------------------- |
| 9 | templated_files = common.py_library(unit_cov_level=100, cov_level=100) |
Tres Seaver | b76f151 | 2021-08-13 18:37:08 -0400 | [diff] [blame] | 10 | |
| 11 | |
Yoshi Automation Bot | 218a159 | 2020-07-06 13:59:22 -0700 | [diff] [blame] | 12 | s.move( |
| 13 | templated_files / ".kokoro", |
| 14 | excludes=[ |
Bu Sun Kim | 621f54b | 2021-01-22 13:43:41 -0700 | [diff] [blame] | 15 | "continuous/common.cfg", |
| 16 | "presubmit/common.cfg", |
| 17 | "build.sh", |
Yoshi Automation Bot | 218a159 | 2020-07-06 13:59:22 -0700 | [diff] [blame] | 18 | ], |
| 19 | ) # just move kokoro configs |
gcf-owl-bot[bot] | 35b198d | 2021-10-06 11:08:22 -0400 | [diff] [blame] | 20 | s.move( |
| 21 | # needed by samples kokoro jobs |
| 22 | templated_files / ".trampolinerc" |
| 23 | ) |
Tres Seaver | b76f151 | 2021-08-13 18:37:08 -0400 | [diff] [blame] | 24 | |
| 25 | |
| 26 | assert 1 == s.replace( |
| 27 | ".kokoro/docs/docs-presubmit.cfg", |
| 28 | 'value: "docs docfx"', |
| 29 | 'value: "docs"', |
| 30 | ) |
| 31 | |
Tres Seaver | b76f151 | 2021-08-13 18:37:08 -0400 | [diff] [blame] | 32 | s.shell.run(["nox", "-s", "blacken"], hide_output=False) |