Commit e6804eac authored by Chris Croome's avatar Chris Croome

bash script needed for php compile test!

parent fdccda38
Pipeline #3496 passed with stage
in 91 minutes and 57 seconds
......@@ -6,27 +6,31 @@
state: present
- name: Add local repo to sources
shell: echo 'deb file:/build/repo {{ php_distro }} main' > /etc/apt/sources.list.d/local.list
shell: "echo 'deb file:/build/repo {{ php_distro }} main' > /etc/apt/sources.list.d/local.list"
- name: Get the version number we want to install
shell: ls /build/repo/pool/main/p/php{{ php_version }}/php7.0_*.deb | sed 's;^/build/repo/pool/main/p/php{{ php_version }}/php7.0_;;' | sed 's/_all.deb$//'
register: php_deb_version
args:
- warn: no
#- name: Get the version number we want to install
# shell: "ls /build/repo/pool/main/p/php{{ php_version }}/php{{ php_version }}_*.deb | sed 's;^/build/repo/pool/main/p/php{{ php_version }}/php{{ php_version }}_;;' | sed 's/_all.deb$//'"
# register: php_deb_version
# args:
# - warn: no
- name: Install PHP Dev package
apt:
pkg:
- "php{{ php_version }}-dev={{ php_deb_version.stdout }}"
- "php{{ php_version }}-dev"
# - "php{{ php_version }}-dev={{ php_deb_version.stdout }}"
state: latest
update_cache: yes
- name: Get the enable-fd-setsize configure option from the installed package
shell: php-config --configure-options | sed 's/\s\+/\n/g' | grep enable-fd-setsize | sed 's/^--enable-fd-setsize=//'
register: php_fd_size
args:
- warn: no
command: php-config --configure-options
- name: Fail if the installed version of PHP doesn't have the correct number of file descriptors enabled
fail:
when: php_sockets != php_fd_size.stdout
#- name: Get the enable-fd-setsize configure option from the installed package
# shell: 'php-config --configure-options | sed "s/\s\+/\n/g" | grep enable-fd-setsize | sed "s/^--enable-fd-setsize=//"'
# register: php_fd_size
# args:
# - warn: no
#
#- name: Fail if the installed version of PHP doesn't have the correct number of file descriptors enabled
# fail:
# when: php_sockets != php_fd_size.stdout
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment