You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or we could also switch to using a Dockerized test environment and bypass this weird Travis CI setup entirely. Or Debian could not be so wacky with having a ton of different configuration directories to configure the same thing by default. I can dream, can't I?
The text was updated successfully, but these errors were encountered:
- name: Check status of PHP configuration directories.stat:
path: "{{ item }}"register: php_xhprof_config_dirs_statwith_items: php_xhprof_config_dirs
- name: Ensure PHP configuration directories exist.file:
path: "{{ item }}"state: directorymode: 0755with_items: php_xhprof_config_dirs_statwhen: "(item.stat.islnk is defined and item.stat.islnk) or (p.stat.isdir is defined and p.stat.isdir)"
Completely untested, and I always forget the exact way to work with loops and register, so I just need to spend some time testing until it's happy.
Travis' Ubuntu 12.04 instance uses symlinks for some of the PHP configuration paths, meaning I get failures like:
We could switch to using an include file to do the xhprof.ini file copies, one at a time, and loop over the files (http://docs.ansible.com/ansible/playbooks_loops.html#loops-and-includes), and use
stat
or customcommand
s to determine if the dirs already exist before creating them.Or we could also switch to using a Dockerized test environment and bypass this weird Travis CI setup entirely. Or Debian could not be so wacky with having a ton of different configuration directories to configure the same thing by default. I can dream, can't I?
The text was updated successfully, but these errors were encountered: