From dc99d2a5fe33b342f2220ff5a2f43844d81241e5 Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Fri, 2 Aug 2019 10:21:10 +0900 Subject: [PATCH 1/4] Try running PHPUnit like Infection does --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 494c0818b..9fa73c127 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ script: - php tests/static-analysis/remote-object.php - ./vendor/bin/phpcs || true - ./vendor/bin/psalm + - phpdbg -qrr vendor/bin/phpunit --testsuite=unit - ulimit -n 4096 && phpdbg -qrr ./vendor/bin/infection -vvv --test-framework-options='--testsuite=unit' --min-msi=84 --min-covered-msi=86 matrix: From 8d1c7fbd2618cd03f2c0cbcac9b08387ee2f7683 Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Fri, 2 Aug 2019 10:25:16 +0900 Subject: [PATCH 2/4] Cut some runtime --- .travis.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9fa73c127..a0dad63af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,46 +5,18 @@ sudo: false php: - 7.4snapshot - - nightly env: matrix: - DEPENDENCIES="high" - - DEPENDENCIES="low" - global: - - GIT_NAME: "'Marco Pivetta'" - - GIT_EMAIL: ocramius@gmail.com - - GH_REF: github.com/Ocramius/ProxyManager - - secure: HUDB66EnmKFx2A+E3HxvuX/7XSjgfNy8dnzcpG+K9mf/JM5JXZflK3xO3J3LCgSQG6Ptwr2yy//7vX+PdJMdSRTmP+d/dy6v8yLRP+GvYZXLIbuKg7dQjLerOxJcy9JhU2eAEBevc002PwFqLalfhCyWLvLiCof8++E2uGbvTSU= before_script: - sh .travis.install.sh script: - - ./vendor/bin/phpunit --disallow-test-output --coverage-clover ./clover.xml --group=Coverage - - ./vendor/bin/phpunit --disallow-test-output --exclude-group=Coverage - - php -n ./vendor/bin/phpbench run --revs=100 --iterations=3 --warmup=1 --report=aggregate - - echo "Running examples" - - php examples/access-interceptor-scope-localizer.php - - php examples/ghost-object.php - - php examples/ghost-object-skipped-properties.php - - php examples/smart-reference.php - - php examples/virtual-proxy.php - - php tests/static-analysis/access-interceptor-scope-localizer.php - - php tests/static-analysis/lazy-loading-ghost-object.php - - php tests/static-analysis/null-object.php - - php tests/static-analysis/access-interceptor-value-holder.php - - php tests/static-analysis/lazy-loading-value-holder.php - - php tests/static-analysis/remote-object.php - - ./vendor/bin/phpcs || true - - ./vendor/bin/psalm - phpdbg -qrr vendor/bin/phpunit --testsuite=unit - ulimit -n 4096 && phpdbg -qrr ./vendor/bin/infection -vvv --test-framework-options='--testsuite=unit' --min-msi=84 --min-covered-msi=86 matrix: allow_failures: - php: nightly - -after_script: - - sh .travis.coverage.sh - - ./vendor/bin/couscous travis-auto-deploy --php-version=7.2 From 1e1fb188a97a4363c715e09f6e273cdb4a558a45 Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Fri, 2 Aug 2019 10:32:58 +0900 Subject: [PATCH 3/4] Cut the Infection too --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a0dad63af..f0232962b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,6 @@ before_script: script: - phpdbg -qrr vendor/bin/phpunit --testsuite=unit - - ulimit -n 4096 && phpdbg -qrr ./vendor/bin/infection -vvv --test-framework-options='--testsuite=unit' --min-msi=84 --min-covered-msi=86 matrix: allow_failures: From 19c044a601a8830979f1c89b89a5115486af935e Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Fri, 2 Aug 2019 15:00:05 +0900 Subject: [PATCH 4/4] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f0232962b..4b99aee66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_script: - sh .travis.install.sh script: - - phpdbg -qrr vendor/bin/phpunit --testsuite=unit + - phpdbg -qrr vendor/bin/phpunit --testsuite=unit --verbose matrix: allow_failures: