CI / Travis: add zsh syntax check

This commit is contained in:
Lars Kruse 2016-10-17 02:21:16 +02:00
parent 9d14b92df4
commit c503e0dbcf
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@
language: perl
install:
- sudo apt-get update
- sudo apt-get --no-install-recommends install devscripts python python3 ruby php5-cli gawk ksh pylint
- sudo apt-get --no-install-recommends install devscripts python python3 ruby php5-cli gawk ksh zsh pylint
- sudo apt-get --no-install-recommends install pkg-config libdb-dev libvirt-dev libexpat-dev
# - Munin/Plugin.pm is in "munin-node" on precise
- sudo apt-get --no-install-recommends install munin-node

View File

@ -71,6 +71,14 @@ sub process_file {
}
);
}
elsif ( $interpreter =~ m{/bin/zsh} ) {
run_check(
{ command => [ 'zsh', '-n', $file ],
description => 'zsh syntax check',
filename => $filename
}
);
}
elsif ( $interpreter =~ m{bash} ) {
run_check(
{ command => [ 'bash', '-n', $file ],