From 14be30558c305133469ab0265032071b47d0cc75 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 23 Apr 2014 11:35:38 -0500 Subject: [PATCH] Add test to make sure PHP is installed. --- .travis.yml | 8 ++++++-- tests/test.yml | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89d074e..64a5b8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,5 +21,9 @@ script: && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) - # Check PHP version to see if it's running... - # TODO + # Make sure PHP is running. + - > + php -v + | grep -q 'The PHP Group' + && (echo 'PHP is installed' && exit 0) + || (echo 'PHP is not installed' && exit 1) diff --git a/tests/test.yml b/tests/test.yml index e89cdca..7cc8e65 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,7 +1,5 @@ --- - hosts: all - vars_files: - - '../vars/main.yml' tasks: - include: '../tasks/main.yml' handlers: