Skip to content

Commit aad7377

Browse files
authored
Remove php 5.6 and Symfony 2.8 support (#39)
* Remove support of eol php * Remove eol symfony from travis, test over php 7.4 * Remove references to symfony 2 * remove eol php and symfony from github actions * Added Github Workflow Bagde
1 parent 6c521ba commit aad7377

File tree

6 files changed

+9
-83
lines changed

6 files changed

+9
-83
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Exclude files that don't need to be present in packages (so they're not downloaded by Composer)
22
/.gitattributes export-ignore
33
/.gitignore export-ignore
4-
/Robofile.php export-ignore
54
/*.md export-ignore
65
/*.yml export-ignore

.github/workflows/main.yml

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,15 @@ jobs:
2222
2323
strategy:
2424
matrix:
25-
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
26-
symfony: [2.8, 3.4, 4, 5]
25+
php: [7.0, 7.1, 7.2, 7.3, 7.4]
26+
symfony: [3.4, 4, 5]
2727
exclude:
28-
- php: 7.0
29-
symfony: 2.8
30-
- php: 7.1
31-
symfony: 2.8
32-
- php: 7.2
33-
symfony: 2.8
34-
- php: 7.3
35-
symfony: 2.8
36-
- php: 7.4
37-
symfony: 2.8
38-
- php: 5.6
39-
symfony: 3.4
4028
- php: 7.3
4129
symfony: 3.4
4230
- php: 7.4
4331
symfony: 3.4
44-
- php: 5.6
45-
symfony: 4
4632
- php: 7.0
4733
symfony: 4
48-
- php: 5.6
49-
symfony: 5
5034
- php: 7.0
5135
symfony: 5
5236
- php: 7.1
@@ -63,14 +47,6 @@ jobs:
6347
extensions: pdo, mysql, sqlite
6448
coverage: none
6549

66-
- name: Checkout Symfony 2.8 Sample
67-
if: matrix.symfony == 2.8
68-
uses: actions/checkout@v2
69-
with:
70-
repository: Codeception/symfony-demo
71-
path: framework-tests
72-
ref: 2.1
73-
7450
- name: Checkout Symfony 3.4 Sample
7551
if: matrix.symfony == 3.4
7652
uses: actions/checkout@v2
@@ -113,13 +89,6 @@ jobs:
11389
composer require "symfony/browser-kit=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs
11490
composer install --prefer-dist --no-progress --no-interaction --no-suggest
11591
116-
- name: Database Symfony 2.8
117-
if: matrix.symfony == 2.8
118-
run: |
119-
php app/console doctrine:schema:create -n --env test
120-
php app/console doctrine:fixtures:load -n --env test
121-
working-directory: framework-tests
122-
12392
- name: Database Symfony 3.4
12493
if: matrix.symfony == 3.4
12594
run: |
@@ -131,11 +100,5 @@ jobs:
131100
php bin/console doctrine:schema:update --force -n
132101
working-directory: framework-tests
133102

134-
- name: Run test suite Symfony > 2.8
135-
if: matrix.symfony != 2.8
103+
- name: Run test suite Symfony
136104
run: php vendor/bin/codecept run functional -c framework-tests
137-
138-
- name: Run test suite Symfony 2.8
139-
if: matrix.symfony == 2.8
140-
run: php vendor/bin/codecept run functional -c framework-tests/src/AppBundle
141-

.travis.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,27 @@
11
language: php
22

33
php:
4-
- 5.6
54
- 7.0
65
- 7.1
76
- 7.2
87
- 7.3
8+
- 7.4
99
env:
1010
global:
1111
- TEST_PATH='framework-tests'
1212
- SYMFONY_DEPRECATIONS_HELPER=weak
1313
matrix:
14-
- VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
1514
- VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
1615
- VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
1716
- VERSION=5 TEST_REPO='-b symfony5 https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
1817
matrix:
1918
exclude:
20-
- php: 7.0
21-
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
22-
- php: 7.1
23-
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
24-
- php: 7.2
25-
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
2619
- php: 7.3
27-
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
28-
- php: 5.6
2920
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
30-
- php: 7.0
21+
- php: 7.4
3122
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
32-
- php: 7.3
33-
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
34-
- php: 5.6
35-
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
3623
- php: 7.0
3724
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
38-
- php: 5.6
39-
env: VERSION=5 TEST_REPO='-b symfony5 https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
4025
- php: 7.0
4126
env: VERSION=5 TEST_REPO='-b symfony5 https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
4227
- php: 7.1
@@ -62,8 +47,6 @@ install:
6247
- COMPOSER_MEMORY_LIMIT=-1 composer update -d framework-tests --no-dev --prefer-dist --no-interaction
6348
before_script:
6449
- mysql -e "create database symfony_test;"
65-
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:schema:create -n --env test'
66-
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:fixtures:load -n --env test'
6750
- '[[ "$VERSION" != "3.4" ]] || php framework-tests/bin/console doctrine:schema:update --force -n'
6851
- php ./vendor/bin/codecept build -c $TEST_PATH
6952
script:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"minimum-stability": "RC",
1414
"require": {
15-
"php": ">=5.6.0 <8.0",
15+
"php": ">=7.0.8 <8.0",
1616
"codeception/lib-innerbrowser": "^1.3",
1717
"codeception/codeception": "^4.0"
1818
},

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
A Codeception module for Symfony framework.
44

5+
[![Actions Status](https://github.com/Codeception/module-symfony/workflows/CI/badge.svg)](https://github.com/Codeception/module-symfony/actions)
56
[![Build Status](https://travis-ci.org/Codeception/module-symfony.svg?branch=master)](https://travis-ci.org/Codeception/module-symfony)
67

78
## Installation

src/Codeception/Module/Symfony.php

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* ## Config
3131
*
32-
* ### Symfony 4.x
32+
* ### Symfony 5.x or 4.x
3333
*
3434
* * app_path: 'src' - in Symfony 4 Kernel is located inside `src`
3535
* * environment: 'local' - environment used for load kernel
@@ -71,26 +71,6 @@
7171
* environment: 'local_test'
7272
*
7373
*
74-
* ### Symfony 2.x
75-
*
76-
* * app_path: 'app' - specify custom path to your app dir, where bootstrap cache and kernel interface is located.
77-
* * environment: 'local' - environment used for load kernel
78-
* * kernel_class: 'AppKernel' - kernel class name
79-
* * debug: true - turn on/off debug mode
80-
* * em_service: 'doctrine.orm.entity_manager' - use the stated EntityManager to pair with Doctrine Module.
81-
* * cache_router: 'false' - enable router caching between tests in order to [increase performance](http://lakion.com/blog/how-did-we-speed-up-sylius-behat-suite-with-blackfire)
82-
* * rebootable_client: 'true' - reboot client's kernel before each request
83-
* * mailer: 'swiftmailer' - choose the mailer used by your application
84-
*
85-
* ### Example (`functional.suite.yml`) - Symfony 2.x Directory Structure
86-
*
87-
* ```
88-
* modules:
89-
* - Symfony:
90-
* app_path: 'app/front'
91-
* environment: 'local_test'
92-
* ```
93-
*
9474
* ## Public Properties
9575
*
9676
* * kernel - HttpKernel instance
@@ -250,7 +230,7 @@ protected function onReconfigure($settings = [])
250230
public function _getEntityManager()
251231
{
252232
if ($this->kernel === null) {
253-
$this->fail('Symfony2 platform module is not loaded');
233+
$this->fail('Symfony module is not loaded');
254234
}
255235
if (!isset($this->permanentServices[$this->config['em_service']])) {
256236
// try to persist configured EM

0 commit comments

Comments
 (0)