Skip to content

Commit

Permalink
Added php8 support (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoreram authored Feb 27, 2021
1 parent bcd1a71 commit 03f4e5e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5,142 deletions.
25 changes: 10 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,37 @@
version: 2
jobs:
test-php73:

test-php74:
docker:
- image: circleci/php:7.3-cli
- image: circleci/php:7.4-cli

working_directory: ~/project
steps:
- checkout

- run:
name: Run tests / Symfony 4^3
command: |
composer update -n --prefer-dist --prefer-lowest --no-suggest
php vendor/bin/phpunit
- run:
name: Run tests / Symfony 5^0
command: |
composer update -n --prefer-dist --no-suggest
composer update -n --prefer-dist
php vendor/bin/phpunit
test-php74:
test-php80:
docker:
- image: circleci/php:7.4-cli
- image: circleci/php:8.0-cli

working_directory: ~/project
steps:
- checkout

- run:
name: Run tests / Symfony 5^0
name: Run tests
command: |
composer update -n --prefer-dist --no-suggest
composer update -n --prefer-dist
php vendor/bin/phpunit
workflows:
version: 2
test:
jobs:
- test-php73
- test-php74
- test-php74
- test-php80
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
vendor
var
.php_cs.cache
/vendor
/var
/.php_cs.cache
/.phpunit.result.cache
/composer.lock
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":1367:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:13:{s:57:"Apisearch\Tests\Functional\AutowiringTest::testAutowiring";d:0.008;s:80:"Apisearch\Tests\Functional\Command\AddDeleteTokensCommandTest::testTokenCreation";d:0.046;s:70:"Apisearch\Tests\Functional\Command\IndexCommandTest::testTokenCreation";d:0.008;s:77:"Apisearch\Tests\Functional\Command\PrintIndicesCommandTest::testTokenCreation";d:0.002;s:62:"Apisearch\Tests\Functional\Command\QueryCommandTest::testQuery";d:0.006;s:106:"Apisearch\Tests\Functional\DependencyInjection\ApisearchConfigurationTest::testMainRepositoryConfiguration";d:0;s:84:"Apisearch\Tests\Functional\DependencyInjection\ApisearchConfigurationTest::testMain2";d:0;s:84:"Apisearch\Tests\Functional\DependencyInjection\ApisearchConfigurationTest::testMain3";d:0;s:108:"Apisearch\Tests\Functional\DependencyInjection\CompilerPass\HttpRepositoryCompilerPassTest::testRepositories";d:0.001;s:112:"Apisearch\Tests\Functional\DependencyInjection\CompilerPass\InMemoryRepositoryCompilerPassTest::testRepositories";d:0;s:109:"Apisearch\Tests\Functional\DependencyInjection\CompilerPass\TransformersCompilerPassTest::testBothTransormers";d:0;s:91:"Apisearch\Tests\Functional\DependencyInjection\DisableCommandsTest::testCommandsAreDisabled";d:0.016;s:90:"Apisearch\Tests\Functional\DependencyInjection\EnableCommandsTest::testCommandsAreDisabled";d:0.004;}}}
2 changes: 1 addition & 1 deletion Tests/Functional/ApisearchBundleFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected static function getKernel(): KernelInterface
* Sets up the fixture, for example, open a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
protected function setUp(): void
{
@unlink('/tmp/apisearch.repository.app123name');
@unlink('/tmp/apisearch.repository.app.app123name');
Expand Down
12 changes: 4 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,23 @@
{
"name": "Marc Morera",
"email": "[email protected]"
},
{
"name": "Puntmig Team",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.1",
"php": "^7.1 | ^8.0",
"symfony/framework-bundle": "^4.0 || ^5.0",
"symfony/http-kernel": "^4.0 || ^5.0",
"symfony/stopwatch": "^4.0 || ^5.0",
"symfony/console": "^4.0 || ^5.0",
"ramsey/uuid": "^3.7.1",
"mmoreram/base-bundle": "^2.1.2",
"apisearch-io/php-client": "0.1.*, >=0.1.27"
"apisearch-io/php-client": "^0.1.27"
},
"require-dev": {
"mmoreram/symfony-bundle-dependencies": "^2.1",
"drift/http-kernel": "0.1.*, >=0.1.7",
"drift/http-kernel": "^0.1.7",
"symfony/browser-kit": "^3.4 || ^4.0 || ^5.0",
"phpunit/phpunit": "7.5.17"
"phpunit/phpunit": "^9"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 03f4e5e

Please sign in to comment.