Skip to content

Commit

Permalink
Test using PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Mar 1, 2016
1 parent 1c4e329 commit 4c76e97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 12 additions & 0 deletions tests/test-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4c76e97

Please sign in to comment.