Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- src: geerlingguy.repo-remi
|
||||
- src: geerlingguy.repo-dotdeb
|
||||
- src: geerlingguy.php
|
31
box/provisioning/roles/geerlingguy.php-xdebug/tests/test.yml
Normal file
31
box/provisioning/roles/geerlingguy.php-xdebug/tests/test.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- hosts: all
|
||||
|
||||
vars:
|
||||
php_enable_webserver: false
|
||||
php_enablerepo: "remi,remi-php70"
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=600
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Set php_packages for PHP 7.0 Debian 8 install.
|
||||
set_fact:
|
||||
php_packages:
|
||||
- php7.0-common
|
||||
- php7.0-cli
|
||||
- php7.0-dev
|
||||
- php7.0-fpm
|
||||
- libpcre3-dev
|
||||
- php7.0-opcache
|
||||
- php7.0-apcu
|
||||
when: ansible_distribution == 'Debian'
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.repo-remi
|
||||
when: ansible_os_family == 'RedHat'
|
||||
- role: geerlingguy.repo-dotdeb
|
||||
when: ansible_distribution == 'Debian'
|
||||
- geerlingguy.php
|
||||
- role_under_test
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test if Xdebug is available and working.
|
||||
*/
|
||||
|
||||
$success = FALSE;
|
||||
|
||||
// Simple check; this function should return an empty array.
|
||||
$test = xdebug_get_code_coverage();
|
||||
if ($test === array()) {
|
||||
$success = TRUE;
|
||||
print "Xdebug working properly.\r\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (!$success) {
|
||||
print "Xdebug not working properly.\r\n";
|
||||
exit(1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue