Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: add and run script which checks if listed files contain "unwr…
…ap". Should fix #10446.
- Loading branch information
1 parent
a026e86
commit dc4fe7e
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Make sure listed files do not contain "unwrap" | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
cd $(git rev-parse --show-toplevel) # cd into repo root so make sure paths works in any case | ||
|
||
# files that should not contain "unwrap" | ||
FILES=("components/compositing/compositor.rs" | ||
"components/compositing/pipeline.rs" | ||
"components/compositing/constellation.rs") | ||
|
||
! grep -n "unwrap(" "${FILES[@]}" |