Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit c8110508 authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

feat: Update meta, remove RH7, PHP 7.4 and 8.0 support (fixes #20, #21)

parent c56208ab
No related branches found
No related tags found
1 merge request!20feat: Update meta, remove RH7, PHP 7.4 and 8.0 support (fixes #20, #21)
# Releases
## 1.1.x
- RedHat 7, PHP 7.4 and PHP 8.0 support removed.
- Role execution for those versions should still work but is not tested any more.
## 1.0.x
- Ubuntu 18.04 LTS support removed.
......
......@@ -6,12 +6,11 @@ galaxy_info:
license: EUPL-1.2
min_ansible_version: "2.5"
platforms:
- name: Amazon Linux 2
- name: Amazon Linux
versions:
- all
- "2"
- name: EL
versions:
- "7"
- "8"
- name: Ubuntu
versions:
......
---
- name: Converge
hosts: all
roles:
- ecgalaxy.oracle_instantclient
tasks:
- name: Include php role
ansible.builtin.include_role:
name: php
vars:
php_version: "{{ version }}"
loop:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
loop_control:
loop_var: version
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
no_proxy: "{{ lookup('env', 'no_proxy') }}"
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: amazonlinux2-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/amazonlinux2-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: centos7-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/centos7-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: rockylinux8-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/rockylinux8-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: ubuntu2004-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/ubuntu2004-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: ubuntu2204-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/ubuntu2204-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
provisioner:
name: ansible
inventory:
group_vars:
all:
ansible_user: ansible
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint .
---
- ecgalaxy.oracle_instantclient
---
- name: "Check version - PHP {{ version }}"
ansible.builtin.shell: "php{{ version }} --version"
register: output_version
- name: "Verify version - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'PHP {{ version }}' in output_version.stdout"
- name: "Check modules - PHP {{ version }}"
ansible.builtin.shell: "php{{ version }} -m"
register: output_modules
- name: "Assert Xdebug installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'Xdebug' in output_version.stdout"
when: php_install_xdebug
- name: "Assert OCI8 installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'oci8' in output_modules.stdout"
when: php_install_oci8_extension
---
- name: "Check version - PHP {{ version }}"
ansible.builtin.shell: "php{{ version | replace('.', '') }} --version"
register: output_version
- name: "Verify version - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'PHP {{ version }}' in output_version.stdout"
- name: "Check modules - PHP {{ version }}"
ansible.builtin.shell: "php{{ version | replace('.', '') }} -m"
register: output_modules
- name: "Assert Xdebug installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'Xdebug' in output_version.stdout"
when: php_install_xdebug
- name: "Assert OCI8 installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'oci8' in output_modules.stdout"
when: php_install_oci8_extension
---
- name: Verify
hosts: all
vars_files:
- ../../defaults/main.yml
tasks:
- name: Include OS-specific tests
include_tasks: "verify-{{ ansible_os_family }}.yml"
loop:
- "7.4"
- "8.0"
- "8.1"
loop_control:
loop_var: version
......@@ -2,8 +2,20 @@
- name: Converge
hosts: all
roles:
- ecgalaxy.bootstrap
- ecgalaxy.common_packages
- ecgalaxy.oracle_instantclient
- php
tasks:
- name: Include php role
ansible.builtin.include_role:
name: php
vars:
php_version: "{{ version }}"
loop:
- "8.1"
- "8.2"
loop_control:
loop_var: version
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
......
......@@ -11,13 +11,6 @@ platforms:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: centos7-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/centos7-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: rockylinux8-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/rockylinux8-ansible:latest
pre_build_image: true
......
---
- ecgalaxy.bootstrap
- ecgalaxy.common_packages
- ecgalaxy.oracle_instantclient
---
- name: Check PHP version
ansible.builtin.shell: "php --version"
- name: "Check version - PHP {{ version }}"
ansible.builtin.shell: "php{{ version }} --version"
register: output_version
- name: Check PHP modules
ansible.builtin.shell: "php -m"
- name: "Verify version - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'PHP {{ version }}' in output_version.stdout"
- name: "Check modules - PHP {{ version }}"
ansible.builtin.shell: "php{{ version }} -m"
register: output_modules
- name: "Assert Xdebug installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'Xdebug' in output_version.stdout"
when: php_install_xdebug
- name: "Assert OCI8 installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'oci8' in output_modules.stdout"
when: php_install_oci8_extension
---
- name: Check PHP version
ansible.builtin.shell: "php{{ php_version | replace('.', '') }} --version"
- name: "Check version - PHP {{ version }}"
ansible.builtin.shell: "php{{ version | replace('.', '') }} --version"
register: output_version
- name: Check PHP modules
ansible.builtin.shell: "php{{ php_version | replace('.', '') }} -m"
- name: "Verify version - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'PHP {{ version }}' in output_version.stdout"
- name: "Check modules - PHP {{ version }}"
ansible.builtin.shell: "php{{ version | replace('.', '') }} -m"
register: output_modules
- name: "Assert Xdebug installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'Xdebug' in output_version.stdout"
when: php_install_xdebug
- name: "Assert OCI8 installed - PHP {{ version }}"
ansible.builtin.assert:
that:
- "'oci8' in output_modules.stdout"
when: php_install_oci8_extension
......@@ -6,20 +6,8 @@
tasks:
- name: Include OS-specific tests
include_tasks: "verify-{{ ansible_os_family }}.yml"
- name: Verify PHP version
ansible.builtin.assert:
that:
- "'PHP {{ php_version }}' in output_version.stdout"
- name: Assert Xdebug installed
ansible.builtin.assert:
that:
- "'Xdebug' in output_version.stdout"
when: php_install_xdebug
- name: Assert OCI8 installed
ansible.builtin.assert:
that:
- "'oci8' in output_modules.stdout"
when: php_install_oci8_extension
loop:
- "8.1"
- "8.2"
loop_control:
loop_var: version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment