Check all protocols in strict mode when building

This commit is contained in:
emersion 2018-05-29 11:30:32 +01:00
parent c73ec02b29
commit 0b86c390ca
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 11 additions and 3 deletions

View file

@ -6,6 +6,4 @@ sources:
tasks:
- protocols: |
cd sway-protocols
wayland-scanner client-header < unstable/surface-layers.xml
wayland-scanner server-header < unstable/surface-layers.xml
wayland-scanner code < unstable/surface-layers.xml
./check.sh

10
check.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
set -e
for f in $(echo unstable/*.xml); do
wayland-scanner -s client-header "$f" /dev/null
wayland-scanner -s server-header "$f" /dev/null
wayland-scanner -s public-code "$f" /dev/null
wayland-scanner -s private-code "$f" /dev/null
done