add tests for php 7.2

This commit is contained in:
Oskar Schöldström 2017-09-18 15:27:27 -05:00
parent d85fe20e13
commit 8321c65083
No known key found for this signature in database
GPG Key ID: B1E80EF9EBBB2973
2 changed files with 45 additions and 6 deletions

View File

@ -2,11 +2,33 @@
services: docker
env:
- distro: centos7
- distro: centos6
- distro: debian8
- distro: ubuntu1604
- distro: ubuntu1404
global:
php_version: "7.1"
matrix:
# Default - PHP 7.1
- distro: centos7
- distro: centos6
- distro: debian8
- distro: ubuntu1604
- distro: ubuntu1404
# PHP 7.2
- distro: centos7
playbook: test-7.2.yml
php_version: "7.2"
- distro: centos6
playbook: test-7.2.yml
php_version: "7.2"
- distro: debian8
playbook: test-7.2.yml
php_version: "7.2"
- distro: ubuntu1604
playbook: test-7.2.yml
php_version: "7.2"
- distro: ubuntu1404
playbook: test-7.2.yml
php_version: "7.2"
script:
# Configure test script so we can run extra tests after playbook is run.
@ -21,7 +43,7 @@ script:
- ${PWD}/tests/test.sh
# Run script to test PHP version.
- 'docker exec ${container_id} env TERM=xterm php -v | grep "7.1."'
- 'docker exec ${container_id} env TERM=xterm php -v | grep "${php_version}."'
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

17
tests/test-7.2.yml Normal file
View File

@ -0,0 +1,17 @@
---
- hosts: all
vars:
php_enable_webserver: false
php_version: "7.2"
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
roles:
- role: geerlingguy.repo-remi
when: ansible_os_family == 'RedHat'
- role_under_test
- geerlingguy.php