mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Fixed tests for Travis.
This commit is contained in:
parent
c4c17aa61b
commit
9a28e06037
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user