Skip to content

Commit

Permalink
CI / Travis: add zsh syntax check
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfralle committed Oct 17, 2016
1 parent 9d14b92 commit c503e0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions t/test.t
Expand Up @@ -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 ],
Expand Down

0 comments on commit c503e0d

Please sign in to comment.