forked from BeSimple/BeSimpleSoap
-
Notifications
You must be signed in to change notification settings - Fork 7
MINT-5942: Upgrade BeSimpleSoap bundle to use PHP 8.1 #24
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
Open
decokeano
wants to merge
61
commits into
master
Choose a base branch
from
MINT-5942
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
6c7a80b
MINT-5942 - Update to PHP 8.1
588dc8c
MINT-5942 - Trigger Pipeline
8399d90
MINT-5942 - Fix filename & add java to image
8ed1570
Github-Actions - Add basic actions file
df67419
Github-Actions: Update on push
e032fa0
Github-Actions: Update on push
14c5358
Github-Actions: Add php version
6f14399
Github-Actions: Remove phpenv command
602033e
Github-Actions: RUn composer update with sudo
17ab0fe
Github-Actions: Run composer update with sudo
fd41e9f
Github-Actions: Change php versions
8457977
Github-Actions: Change php versions
acffbdb
Github-Actions: Check php version
8af33e8
Github-Actions: Check php version
5c294a1
Github-Actions: Remove SetUpTearDownTrait
3a1743a
Github-Actions: Remove SetUpTearDownTrait
78340d3
Merge branch 'Github-Actions' into MINT-5942
f586f83
MINT-5942: add github action. Update axis version
d23e1e4
MINT-5942: Test on php 8.1
4928b34
MINT-5942: Test on php 8.1
89c6303
MINT-5942: Test on php 8.1
2001a3a
MINT-5942: Test on php 8.1
a7a1e31
MINT-5942: Revert debugging code
fd48ddf
MINT-5942: Test on php 8.1, php 5.6, 7.0
e0c83bd
MINT-5942: Test on php 8.1, php 5.6, 7.0
e3bf920
MINT-5942: Test on php 8.1, php 5.6, 7.0
adbc3d5
MINT-5942: Test on php 8.1
2c5d507
MINT-5942: MOve down to SF5.4
1babb03
MINT-5942: Test SF5.4
0828249
MINT-5942: Test SF5.4 - 6
e338be0
MINT-5942: Test SF5.4
144f734
MINT-5942: Test php 5.6
4095f3b
MINT-5942: Test php 7.4/8
c057b41
MINT-5942: Split php7/8 jobs
91fd835
MINT-5942: Adding PHP 8 support in composer.json
e5eafe1
MINT-5942: Fix deprecations
1838301
MINT-5942: Small refactor
902f74b
MINT-5942: Revert for tests
965457a
MINT-5942: Test
61fe11a
MINT-5942: Fix phpunit deprecations
1f890f4
MINT-5942: Remove debugger code
49ed514
MINT-5942: Allow PHP >7
6958936
MINT-5942: Fix laminas dependency
8329d2e
MINT-5942: Fix laminas dependency
62bd19a
MINT-5942: Split SF 7 into separate jobs
f846615
MINT-5942: Update laminas/laminas-serializer
567ba61
MINT-5942: Switch to jms serializer
80a39c1
MINT-5942: Remove 7.0/7.1
fe48a09
MINT-5942: fix serializer
096c7bb
MINT-5942: fix serializer versioning
d53d24b
MINT-5942: fix pipeline tag
5f6f6fb
MINT-5942: fix serializer version
6a570ef
MINT-5942: fix serializer version
afd2802
MINT-5942: limit serializer version
903b692
MINT-5942: fix composer
66a4dcb
MINT-5942: allow jms serializer 1.10
085b414
MINT-5942: Change to php 8.0
f49a336
MINT-5942: Ensure php >=7.2
538a748
MINT-5942: Remove annotations package
f507dbf
MINT-5942: Tests symf 2.3
422e170
MINT-5942: Tests symf 2.3
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| name: Workflow | ||
| on: [push] | ||
| jobs: | ||
| php_8_job: | ||
| runs-on: '${{ matrix.os }}' | ||
| strategy: | ||
| matrix: | ||
| operating-system: [ubuntu-latest] | ||
| php-versions: ['8.0'] | ||
| include: | ||
| - os: ubuntu-18.04 | ||
| SYMFONY_VERSION: 6.0.* | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: intl #optional | ||
| ini-values: "post_max_size=256M" #optional | ||
| - name: Check PHP Version | ||
| run: php -v | ||
| - run: sudo composer self-update | ||
| - run: >- | ||
| composer require symfony/framework-bundle:${SYMFONY_VERSION} | ||
| --no-update | ||
| env: | ||
| SYMFONY_VERSION: '${{ matrix.SYMFONY_VERSION }}' | ||
| - run: composer install --prefer-dist --no-interaction | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/axis.sh | ||
| - run: bin/simple-phpunit --debug | ||
|
|
||
| php_7-syf_5_job: | ||
| runs-on: '${{ matrix.os }}' | ||
| strategy: | ||
| matrix: | ||
| operating-system: [ubuntu-latest] | ||
| php-versions: ['7.2','7.3','7.4'] | ||
| include: | ||
| - os: ubuntu-18.04 | ||
| SYMFONY_VERSION: 5.4.* | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: intl #optional | ||
| ini-values: "post_max_size=256M" #optional | ||
| - name: Check PHP Version | ||
| run: php -v | ||
| - run: sudo composer self-update | ||
| - run: >- | ||
| composer require symfony/framework-bundle:${SYMFONY_VERSION} | ||
| --no-update | ||
| env: | ||
| SYMFONY_VERSION: '${{ matrix.SYMFONY_VERSION }}' | ||
| - run: composer install --prefer-dist --no-interaction | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/axis.sh | ||
| - run: bin/simple-phpunit | ||
|
|
||
|
|
||
| php_7-syf_3_job: | ||
| runs-on: '${{ matrix.os }}' | ||
| strategy: | ||
| matrix: | ||
| operating-system: [ubuntu-latest] | ||
| php-versions: ['7.2','7.3','7.4'] | ||
| include: | ||
| - os: ubuntu-18.04 | ||
| SYMFONY_VERSION: 3.4.* | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: intl #optional | ||
| ini-values: "post_max_size=256M" #optional | ||
| - name: Check PHP Version | ||
| run: php -v | ||
| - run: sudo composer self-update | ||
| - run: >- | ||
| composer require symfony/framework-bundle:${SYMFONY_VERSION} | ||
| --no-update | ||
| env: | ||
| SYMFONY_VERSION: '${{ matrix.SYMFONY_VERSION }}' | ||
| - run: composer install --prefer-dist --no-interaction | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh | ||
| - run: ./src/BeSimple/SoapClient/Tests/bin/axis.sh | ||
| - run: bin/simple-phpunit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,26 @@ | ||
| FROM composer:1 AS composer | ||
| FROM composer:2 AS composer | ||
|
|
||
| FROM php:7.0-fpm | ||
| FROM php:8.0.0-fpm | ||
|
|
||
| COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
|
||
| #Installing and enabling features and PHP extension needed | ||
| RUN apt-get update -y \ | ||
| && apt-get install -y libxml2-dev git unzip \ | ||
| && apt-get clean -y \ | ||
| && docker-php-ext-install soap | ||
| && docker-php-ext-install soap | ||
|
|
||
| #RUN apt-get update && \ | ||
| # apt-get install -y openjdk-11-jdk && \ | ||
| # apt-get install -y ant && \ | ||
| # apt-get clean; | ||
| # | ||
| ## Fix certificate issues | ||
| #RUN apt-get update && \ | ||
| # apt-get install ca-certificates-java && \ | ||
| # apt-get clean && \ | ||
| # update-ca-certificates -f; | ||
| # | ||
| ## Setup JAVA_HOME -- useful for docker commandline | ||
| #ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/ | ||
| #RUN export JAVA_HOME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,11 +4,8 @@ | |
|
|
||
| class TestCase extends \PHPUnit\Framework\TestCase | ||
| { | ||
| // when using the SetUpTearDownTrait, methods like doSetup() can | ||
| // be defined with and without the 'void' return type, as you wish | ||
| use \Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
|
||
| protected function doSetUp() | ||
| protected function setUp(): void | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. void is not an acceptable return type on PHP 7.0. |
||
| { | ||
| $ch = curl_init('http://localhost:8080/'); | ||
| curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,18 +4,9 @@ | |
|
|
||
| class TestCase extends \PHPUnit\Framework\TestCase | ||
| { | ||
| // when using the SetUpTearDownTrait, methods like doSetup() can | ||
| // be defined with and without the 'void' return type, as you wish | ||
| use \Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | ||
|
|
||
| protected function doSetUp() | ||
| protected function setUp(): void | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. void is not an acceptable return type on PHP 7.0 |
||
| { | ||
| if (version_compare(PHP_VERSION, '5.3.0', '=')) { | ||
| $this->markTestSkipped( | ||
| 'The PHP cli webserver is not available with PHP 5.3.' | ||
| ); | ||
| } | ||
|
|
||
| $ch = curl_init('http://localhost:8081/'); | ||
| curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); | ||
| curl_setopt($ch, CURLOPT_HEADER, true); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nullable return types will not working on PHP 7.0.