Skip to content

Commit

Permalink
appveyor: verify that js/ts files are listed in BUILD.gn
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Sep 13, 2018
1 parent 410ea92 commit 28812b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit 28812b8

Please sign in to comment.