Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afup#1437 containers docker PHP 7.4 #1584

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ PAYBOX_IDENTIFIANT=110647233
BLOG_API_KEY=123456

SMTP_HOST="localhost"
SMTP_PORT="1025"
SMTP_TLS="0"
SMTP_PORT=1025
SMTP_TLS=0
SMTP_USERNAME=""
SMTP_PASSWORD=""
MAILER_FORCE_RECIPIENTS=""
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
name: CI

on: [push, pull_request]
on: [ push, pull_request ]

jobs:

unit:
name: "Unit tests"
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
php: ["7.0"]

steps:
- uses: actions/checkout@v4

- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
php-version: '7.4'

- name: Get Composer Cache Directory
id: composer-cache
Expand Down Expand Up @@ -49,7 +44,7 @@ jobs:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '7.0'
php-version: '7.4'

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
4 changes: 2 additions & 2 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

$finder = PhpCsFixer\Finder::create()
$finder = (new PhpCsFixer\Finder())
->name('*.php')
->in(__DIR__ . "/sources/AppBundle")
;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ node_modules:

composer.phar:
# You may replace the commit hash by whatever the last commit hash is on https://github.com/composer/getcomposer.org/commits/main
wget https://raw.githubusercontent.com/composer/getcomposer.org/46c42b8248e157b4f77acf5150dacba6aeb60901/web/installer -O - -q | php -- --2.2
curl https://raw.githubusercontent.com/composer/getcomposer.org/46c42b8248e157b4f77acf5150dacba6aeb60901/web/installer | php -- --2.2

init-db:
make reset-db
Expand Down
10 changes: 6 additions & 4 deletions bin/doctrine-dbal
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ if (PHP_VERSION_ID < 80000) {
}
}

if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/vendor/doctrine/dbal/bin/doctrine-dbal');
exit(0);
if (
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) {
return include("phpvfscomposer://" . __DIR__ . '/..'.'/vendor/doctrine/dbal/bin/doctrine-dbal');
}
}

include __DIR__ . '/..'.'/vendor/doctrine/dbal/bin/doctrine-dbal';
return include __DIR__ . '/..'.'/vendor/doctrine/dbal/bin/doctrine-dbal';
1 change: 0 additions & 1 deletion compose.override.yml-dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2.2"
services:
db:
ports:
Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ services:
args:
uid: ${CURRENT_UID:-1001}
gid: "1001"
ENABLE_XDEBUG: ${ENABLE_XDEBUG:-false}
env_file:
.env
user: localUser
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Main repository for afup website",
"type": "project",
"require": {
"php": "7.4.* | 8.2.*",
"ext-curl": "*",
"ext-dom": "*",
"ext-gd": "*",
Expand All @@ -12,7 +13,7 @@
"algolia/algoliasearch-client-php": "^1.12",
"beberlei/assert": "^2.9",
"captioning/captioning": "^2.6",
"ccmbenchmark/ting_bundle": "^3.0",
"ccmbenchmark/ting_bundle": "3.4.1",
"cocur/slugify": "^2.3",
"doctrine/dbal": "^2.5",
"ekino/newrelic-bundle": "^1.4",
Expand All @@ -24,7 +25,7 @@
"j7mbo/twitter-api-php": "^1.0",
"jms/serializer-bundle": "^1.1",
"knpuniversity/oauth2-client-bundle": "^1.4",
"league/iso3166": "^2.1",
"league/iso3166": "^4.0",
"league/oauth2-github": "^0.2.1",
"nojimage/twitter-text-php": "1.1.*",
"pacely/mailchimp-apiv3": "^1.0",
Expand Down Expand Up @@ -90,12 +91,12 @@
],
"minimum-stability": "stable",
"require-dev": {
"atoum/atoum": "^2.8",
"atoum/atoum": "^4.0",
"atoum/stubs": "^2.5",
"friendsofphp/php-cs-fixer": "~2",
"behat/behat": "^3.7",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"friendsofphp/php-cs-fixer": "~2",
"smalot/pdfparser": "^0.19.0"
},
"repositories": [
Expand Down
Loading