From 2371c75d8188975629f76849027be07b693a3157 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Fri, 9 Aug 2024 09:39:35 +0300 Subject: [PATCH] drop php7.4 support --- .github/workflows/test-config.yml | 2 +- .travis.yml | 54 ------------------------------- tests/ConfigFactoryTest.php | 1 - tests/ConsoleTest.php | 1 - 4 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/test-config.yml b/.github/workflows/test-config.yml index e5f805b..b0ff953 100644 --- a/.github/workflows/test-config.yml +++ b/.github/workflows/test-config.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: true matrix: - php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] + php: [ '8.0', '8.1', '8.2', '8.3' ] l5-swagger-flags: ['latest', 'swagger-php-3', 'swagger-ui-3'] name: PHP ${{ matrix.php }} - ${{ matrix.l5-swagger-flags }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 641f526..0000000 --- a/.travis.yml +++ /dev/null @@ -1,54 +0,0 @@ -language: php -sudo: false -git: - depth: 1 -env: - global: - - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader" - - REPORT_TESTS_COVERAGE=0 - - CACHE_NAME=OPEN_API -matrix: - fast_finish: true - include: - - php: 7.2 - - php: 7.3 - - php: 7.4 - env: - - REPORT_TESTS_COVERAGE=1 - - XDEBUG_MODE=coverage - - php: 8.0 -cache: - directories: - - "$HOME/.composer/cache" -install: - - travis_retry composer update $DEFAULT_COMPOSER_FLAGS - - composer require 'zircote/swagger-php:3.*' - - composer info -D | sort -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -script: - - pwd - - ls -al | grep $USER - - sudo chown -R $USER:$USER . - - sudo chmod -R g+rw . - - ls -al | grep $USER - - mkdir -p tests/storage/logs/test-reports - - mkdir -p vendor/orchestra/testbench-core/laravel/vendor/swagger-api - - mkdir -p vendor/orchestra/testbench-core/laravel/vendor/swagger-api/swagger-ui - - mkdir -p vendor/orchestra/testbench-core/laravel/vendor/swagger-api/swagger-ui/dist - - sudo chown -R $USER:$USER vendor/orchestra/testbench-core/laravel/vendor/swagger-api - - chmod -R 777 vendor/orchestra/testbench-core/laravel/vendor/swagger-api - - ls -al vendor/orchestra/testbench-core/laravel/vendor/swagger-api - - chmod -R 777 /home/travis/build/DarkaOnLine/L5-Swagger - - if [ $REPORT_TESTS_COVERAGE != 1 ]; then vendor/bin/phpunit --no-coverage; fi - - if [ $REPORT_TESTS_COVERAGE == 1 ]; then vendor/bin/phpunit; cp tests/storage/logs/test-reports/clover.xml clover.xml; fi - - ls -al vendor/orchestra/testbench-core/laravel/vendor/swagger-api/swagger-ui/dist -after_success: - - if [ $REPORT_TESTS_COVERAGE == 1 ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi - - if [ $REPORT_TESTS_COVERAGE == 1 ]; then php vendor/bin/php-coveralls -v; fi -notifications: - email: false - slack: - secure: ZymO41QYmcBtaqIcjKagifif5bH+vpUdZe9eN2Q27G2HF7ID0ZP2X6sCCUCVqdJfM3DhmEsNo8h/HiY86u/5zhf5YpZr7vt+CuYinIJ+nydGXWO5CU6nSotmafFgo3u+Yyjz6qIBhnOVZL8prYcbZsn0SIRvvTwT0qOCBGWIEohdxnu6DpC1BRKQ2RNgsGnO88N5+8FYGor1M4+UT38d/JMrgx8MGkW305ioCmW888NmVuNMheEh19wyFqp9FCQED2DsLxU3pi7A5w4knA5eIy89ULPOrNFUMq5LIBA5OdERrnNS6Yk5/kMmepH2A0tj9pFqBzxdFtThQtYYZ1UnxrotfE+YvU587FW3iXowpHAsaGeoLA3XkakCuZ6jpZhKwOWvslBcBt/6Irs0MPmj5EyaIOb8kAACij8nIfWQkQu/2Ik/AZ0L4lw36RRYNMdel8fMZAwcmK1bfh51dJqhTsf2e4iLa9xHCx7/Mib8EriDwRdYeO0GWSRk4cwTyIY2JjpkidgbDy2BHpiFxp9v/mNf6nJYYVG1Arnv/tK0t3WeILkOHy7tkWtGwFrjiRVQ7B2Hq+iBgda0reZSncK56GhmrMiHwO95QPe6hh3oz3lwcl7MoKGCyLASTeXTKNGhR5fds/6fG25bov8DDOaWXbQyeidJwO4UvLY6ksS3onc= diff --git a/tests/ConfigFactoryTest.php b/tests/ConfigFactoryTest.php index 225ae37..28ace5e 100644 --- a/tests/ConfigFactoryTest.php +++ b/tests/ConfigFactoryTest.php @@ -23,7 +23,6 @@ public function testItThrowsExceptionIfDocumentationConfigNotFound(): void /** * @throws L5SwaggerException - * @dataProvider configDataProvider */ #[DataProvider('configDataProvider')] public function testCanMergeConfigurationDeep(array $data, array $assert): void diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index 579e05f..df3b275 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -15,7 +15,6 @@ class ConsoleTest extends TestCase /** * @throws L5SwaggerException * @throws FileNotFoundException - * @dataProvider provideGenerateCommands */ #[DataProvider('provideGenerateCommands')] public function testCanGenerate(string $artisanCommand): void