From 4c76e97445de1a6233cf4c899379b8e04808af05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Tue, 1 Mar 2016 11:22:39 -0500 Subject: [PATCH] Test using PHP 5.6 --- .travis.yml | 2 +- tests/test-source.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 817825c..f680c9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ script: - 'sudo docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"' # Install dependencies. - - 'sudo docker exec "$(cat ${container_id})" ansible-galaxy install geerlingguy.php' + - 'sudo docker exec "$(cat ${container_id})" ansible-galaxy install geerlingguy.php geerlingguy.repo-remi' # Ansible syntax check. - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/test-${SITE}.yml --syntax-check' diff --git a/tests/test-source.yml b/tests/test-source.yml index 44fd951..9f1e024 100644 --- a/tests/test-source.yml +++ b/tests/test-source.yml @@ -3,7 +3,19 @@ vars: php_enable_webserver: false + php_version: 5.6 + php_enablerepo: "remi,remi-php56" + + pre_tasks: + - name: Ensure build dependencies are installed (RedHat). + yum: name=which state=present + when: ansible_os_family == 'RedHat' + + - name: Add repository for PHP 5.6. + apt_repository: repo='ppa:ondrej/php5-5.6' + when: ansible_os_family == 'Debian' roles: + - { role: geerlingguy.repo-remi, when: ansible_os_family == 'RedHat' } - geerlingguy.php - role_under_test