From c503e0dbcfd8ccffbe7e86c1437266baf53802c9 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Mon, 17 Oct 2016 02:21:16 +0200 Subject: [PATCH] CI / Travis: add zsh syntax check --- .travis.yml | 2 +- t/test.t | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 76144bd2..4fb993af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/t/test.t b/t/test.t index 7bc55d0b..b403062a 100644 --- a/t/test.t +++ b/t/test.t @@ -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 ],