1eb4e3dca5
Inspired by openQA's 01-compile-check-all.t, this adds a perl test which checks the syntax of main.pm and all lib and test files, and hooks it up to CI. Requires os-autoinst and perl-Test-Strict. Signed-off-by: Adam Williamson <awilliam@redhat.com>
11 lines
294 B
YAML
11 lines
294 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Install required packages
|
|
package:
|
|
name: ['os-autoinst', 'perl-Test-Strict', 'perl-Test-Harness']
|
|
state: present
|
|
become: yes
|
|
- name: Run perl tests
|
|
command: prove t/
|
|
args:
|
|
chdir: '{{ zuul.project.src_dir }}'
|