Fixed tests for Travis.

This commit is contained in:
Jeff Geerling 2015-05-31 21:05:08 -05:00
parent c4c17aa61b
commit 9a28e06037
2 changed files with 9 additions and 3 deletions

View File

@ -33,11 +33,12 @@ script:
# Run the role/playbook in --check mode.
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo --check"
- find / -name 'gmp.h'
# Make sure PHP is running.
# Make sure PHP is available.
- >
php -v
| grep -q 'The PHP Group'
&& (echo 'PHP is installed' && exit 0)
|| (echo 'PHP is not installed' && exit 1)
# And for posterity...
- php -v

View File

@ -41,11 +41,16 @@
- librecode-dev
when: ansible_os_family == 'Debian'
- name: Check if gmp.h is already in a location accessible to gcc.
stat: path=/usr/include/gmp.h
register: gmp_file
- name: Ensure gmp.h is symlinked into a location accessible to gcc.
file:
src: /usr/include/x86_64-linux-gnu/gmp.h
dest: /usr/include/gmp.h
state: link
when: gmp_file.stat.exists == false
- name: Clone the PHP repository.
git: