diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-09-12 21:26:26 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-09-12 22:25:03 -0700 |
commit | 28812b833761c101d7d39a774f5b2619688765cf (patch) | |
tree | 809b43ea19899059716e155eb115e68099d42ff8 | |
parent | 410ea92e32f83712fbeee9106fc195df28cd98b2 (diff) |
appveyor: verify that js/ts files are listed in BUILD.gn
-rw-r--r-- | .appveyor.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 4e90def4d..fff4738f5 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -377,6 +377,17 @@ after_test: throw "Build should be up-to-date but isn't." } + # Verify that javascript and typescript files which are bundled by rollup are + # listed explicitly in BUILD.gn. This is not an air-tight check. + # TODO: make rollup or another bundler write a depfile. + - ps: |- + $ignore = "test_util.ts", "unit_tests.ts", "*_test.ts" + Get-ChildItem "js" -File -Force -Name | + where { $name = $_; -not ($ignore | where { $name -like $_ }) } | + where { -not (Select-String -Pattern $_ -Path BUILD.gn ` + -SimpleMatch -CaseSensitive) } | + foreach { throw "$_ should be listed in BUILD.gn but isn't." } + # Verify that generated ninja files do not use absolute path names. # If they do, it makes ccache/sccache much less effective. - ps: |- |