From 9b0cfda6e268eb6f8e1b785c554899d68b36a733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Sun, 17 Mar 2024 01:48:53 +0100 Subject: [PATCH] CI updates --- .scrutinizer.yml | 34 ------------------------------- .travis.yml | 53 ------------------------------------------------ 2 files changed, 87 deletions(-) delete mode 100644 .travis.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 348021f2..8132c011 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,43 +1,9 @@ build: nodes: - tests-php80: - environment: - php: - version: '8.0' - ini: - phar.readonly: 'Off' - pecl_extensions: - - xdebug - tests: - override: - - - command: 'XDEBUG_MODE=coverage ./bin/phpunit --coverage-clover=coverage.xml' - coverage: - file: 'coverage.xml' - format: 'php-clover' - tests-php83: - environment: - php: - version: '8.3' - ini: - phar.readonly: 'Off' - pecl_extensions: - - xdebug - tests: - override: - - - command: 'XDEBUG_MODE=coverage ./bin/phpunit --coverage-clover=coverage.xml' - coverage: - file: 'coverage.xml' - format: 'php-clover' validation: tests: override: - php-scrutinizer-run --enable-security-analysis - - - command: './bin/phpcs --report=checkstyle --standard=phpcs.xml src/ tests/' - - - command: './bin/phpstan -V && bin/phpstan --error-format=github' filter: excluded_paths: - 'tests/*' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be0113a0..00000000 --- a/.travis.yml +++ /dev/null @@ -1,53 +0,0 @@ -language: php - -php: - - 7.4 - - 8.0 - - 8.1 - - 8.2 - - 8.3 - -sudo: false - -env: - matrix: - - DB=mysql db_dsn='mysql://root@127.0.0.1/cakephp_test' - - DB=pgsql db_dsn='postgres://postgres@127.0.0.1/cakephp_test' - - DB=sqlite db_dsn='sqlite:///:memory:' - global: - - DEFAULT=1 - -matrix: - fast_finish: true - include: - - php: 7.4 - env: PHPCS=1 DEFAULT=0 - - php: 7.4 - env: PHPSTAN=1 DEFAULT=0 - - php: 7.4 - env: PREFER_LOWEST=1 - -before_install: - - echo 'extension = ldap.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - -install: - - if [[ $PREFER_LOWEST != '1' ]]; then composer install --prefer-dist --no-interaction; fi - - if [[ $PREFER_LOWEST == '1' ]]; then composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi - -before_script: - - if [[ $DB == 'mysql' ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi - - if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi - - if [[ $PHPSTAN == 1 ]]; then composer require --dev phpstan/phpstan:"^0.9"; fi - -script: - - if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml; fi - - if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi - - - if [[ $PHPCS == 1 ]]; then vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/; fi - - if [[ $PHPSTAN == 1 ]]; then vendor/bin/phpstan analyse -l 4 src; fi - -after_success: - - if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi - -notifications: - email: false