Skip to content

Commit

Permalink
Drop support for PHP 7.3 (#1340)
Browse files Browse the repository at this point in the history
* Remove PHP 7.3 from CI matrix
  • Loading branch information
maks-rafalko committed Oct 17, 2020
1 parent ddea14c commit 88d0e3d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -16,10 +16,10 @@ jobs:

strategy:
matrix:
php-version: ['7.3', '7.4']
php-version: ['7.4']
dependencies: ['']
include:
- { php-version: '7.3', dependencies: '--prefer-lowest' }
- { php-version: '7.4', dependencies: '--prefer-lowest' }
- { php-version: '8.0', dependencies: '--ignore-platform-req=php' }

continue-on-error: ${{ matrix.php-version == '8.0' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cs.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: 7.4
tools: php-cs-fixer:${{ env.PHP_CS_FIXER_VERSION }}

- name: Restore PHP-CS-Fixer cache
Expand Down
25 changes: 3 additions & 22 deletions .travis.yml
Expand Up @@ -32,7 +32,7 @@ before_install:
jobs:
include:
- stage: Static Code Analysis
php: 7.3
php: 7.4
install:
- composer install $COMPOSER_FLAGS
script:
Expand All @@ -41,7 +41,7 @@ jobs:

- &STANDARD_TEST_JOB
stage: Test
php: 7.3
php: 7.4
env: DRIVER="none"
install:
- |
Expand Down Expand Up @@ -86,25 +86,6 @@ jobs:
phpdbg -qrr bin/infection $INFECTION_FLAGS;
fi
- <<: *STANDARD_TEST_JOB
php: 7.3
env: DRIVER="pcov"
after_success:
- bash <(curl -s https://codecov.io/bash)

- <<: *STANDARD_TEST_JOB
php: 7.3
env: DRIVER="xdebug"

- <<: *STANDARD_TEST_JOB
php: 7.3
env: DRIVER="phpdbg"

-
<<: *STANDARD_TEST_JOB
php: 7.3
env: DEPS="LOW" DRIVER="xdebug"

-
<<: *STANDARD_TEST_JOB
php: 7.4
Expand Down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zWMsj5gpJtVeyPY5BTcAOE3je5/+1eq14VVnf3iSgMu3DbF1o/KuMxdes5vDadoZaVQmtLtNHvgu/UDCicBKk3BnLtlQe1bFfEsoSDRr+zCVkO5ypcbERxQzVCGdZdHsXLFZSxdLsEqSqD5ItZe1ZXv4K8bsDDY5rJgjyaiQs/FT/G4dlf61MHqzKtErgsNQ99ilV4iWqHGHnbMISyYdiLWTG8z/nhE34M+08J0gpSDfVrs1pvoUIzhD8KvjlU2QC2IXuE38aXTZm4IeTA7P6vZbUoCCcgOxIRqzS0UX9M1ddOUmy6prc3CGgiEgn6ey/eWmfyRQSbuL07aRH7MEzW4ESAJbdjHsuZoIUXGC9okLvk2pKfQxCjV86akPub7BZ8=
Expand Down
39 changes: 5 additions & 34 deletions Makefile
Expand Up @@ -27,8 +27,6 @@ PHPUNIT=vendor/bin/phpunit
INFECTION=./build/infection.phar

DOCKER_RUN=docker run --tty --rm --volume "$$PWD":/opt/infection --workdir /opt/infection
DOCKER_RUN_73=$(FLOCK) devTools/*php73*.json $(DOCKER_RUN) infection_php73
DOCKER_RUN_73_IMAGE=devTools/Dockerfile-php73-xdebug.json
DOCKER_RUN_74=$(FLOCK) devTools/*php74*.json $(DOCKER_RUN) infection_php74
DOCKER_RUN_74_IMAGE=devTools/Dockerfile-php74-xdebug.json

Expand Down Expand Up @@ -108,11 +106,7 @@ test-unit: $(PHPUNIT)

.PHONY: test-unit-docker
test-unit-docker: ## Runs the unit tests on the different Docker platforms
test-unit-docker: test-unit-73-docker test-unit-74-docker

.PHONY: test-unit-73-docker
test-unit-73-docker: $(DOCKER_RUN_73_IMAGE) $(PHPUNIT)
$(DOCKER_RUN_73) $(PHPUNIT) --group default
test-unit-docker: test-unit-74-docker

.PHONY: test-unit-74-docker
test-unit-74-docker: $(DOCKER_RUN_74_IMAGE) $(PHPUNIT)
Expand All @@ -132,25 +126,15 @@ test-e2e-docker: ## Runs the end-to-end tests on the different Docker platforms
test-e2e-docker: test-e2e-phpdbg-docker test-e2e-xdebug-docker

.PHONY: test-e2e-phpdbg-docker
test-e2e-phpdbg-docker: test-e2e-phpdbg-73-docker test-e2e-phpdbg-74-docker

.PHONY: test-e2e-phpdbg-73-docker
test-e2e-phpdbg-73-docker: $(DOCKER_RUN_73_IMAGE) $(INFECTION)
$(DOCKER_RUN_73) $(PHPUNIT) --group integration,e2e
$(DOCKER_RUN_73) env PHPDBG=1 ./tests/e2e_tests $(INFECTION)
test-e2e-phpdbg-docker: test-e2e-phpdbg-74-docker

.PHONY: test-e2e-phpdbg-74-docker
test-e2e-phpdbg-74-docker: $(DOCKER_RUN_74_IMAGE) $(INFECTION)
$(DOCKER_RUN_74) $(PHPUNIT) --group integration,e2e
$(DOCKER_RUN_74) env PHPDBG=1 ./tests/e2e_tests $(INFECTION)

.PHONY: test-e2e-xdebug-docker
test-e2e-xdebug-docker: test-e2e-xdebug-73-docker test-e2e-xdebug-74-docker

.PHONY: test-e2e-xdebug-73-docker
test-e2e-xdebug-73-docker: $(DOCKER_RUN_73_IMAGE) $(INFECTION)
$(DOCKER_RUN_73) $(PHPUNIT) --group integration,e2e
$(DOCKER_RUN_73) ./tests/e2e_tests $(INFECTION)
test-e2e-xdebug-docker: test-e2e-xdebug-74-docker

.PHONY: test-e2e-xdebug-74-docker
test-e2e-xdebug-74-docker: $(DOCKER_RUN_74_IMAGE) $(INFECTION)
Expand All @@ -167,22 +151,14 @@ test-infection-docker: ## Runs Infection against itself on the different Docker
test-infection-docker: test-infection-phpdbg-docker test-infection-xdebug-docker

.PHONY: test-infection-phpdbg-docker
test-infection-phpdbg-docker: test-infection-phpdbg-73-docker test-infection-phpdbg-74-docker

.PHONY: test-infection-phpdbg-73-docker
test-infection-phpdbg-73-docker: $(DOCKER_RUN_73_IMAGE)
$(DOCKER_RUN_73) phpdbg -qrr bin/infection --threads=4
test-infection-phpdbg-docker: test-infection-phpdbg-74-docker

.PHONY: test-infection-phpdbg-74-docker
test-infection-phpdbg-74-docker: $(DOCKER_RUN_74_IMAGE)
$(DOCKER_RUN_74) phpdbg -qrr bin/infection --threads=4

.PHONY: test-infection-xdebug-docker
test-infection-xdebug-docker: test-infection-xdebug-73-docker test-infection-xdebug-74-docker

.PHONY: test-infection-xdebug-73-docker
test-infection-xdebug-73-docker: $(DOCKER_RUN_73_IMAGE)
$(DOCKER_RUN_73) ./bin/infection --threads=4
test-infection-xdebug-docker: test-infection-xdebug-74-docker

.PHONY: test-infection-xdebug-74-docker
test-infection-xdebug-74-docker: $(DOCKER_RUN_74_IMAGE)
Expand Down Expand Up @@ -228,11 +204,6 @@ phpunit.xml.dist:
# Not updating phpunit.xml with:
# phpunit --migrate-configuration || true

$(DOCKER_RUN_73_IMAGE): devTools/Dockerfile-php73-xdebug
docker build --tag infection_php73 --file devTools/Dockerfile-php73-xdebug .
docker image inspect infection_php73 > $(DOCKER_RUN_73_IMAGE)
touch $@

$(DOCKER_RUN_74_IMAGE): devTools/Dockerfile-php74-xdebug
docker build --tag infection_php74 --file devTools/Dockerfile-php74-xdebug .
docker image inspect infection_php74 > $(DOCKER_RUN_74_IMAGE)
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Expand Up @@ -6,11 +6,11 @@ clone_folder: c:\projects\workspace
environment:
matrix:
- dependencies: highest
php_ver_target: 7.3.15
xdebug_ver: '2.9.2-7.3-vc15'
php_ver_target: 7.4.11
xdebug_ver: '2.9.2-7.4-vc15'
- dependencies: current
php_ver_target: 7.3.15
xdebug_ver: '2.9.2-7.3-vc15'
php_ver_target: 7.4.11
xdebug_ver: '2.9.2-7.4-vc15'

cache: # cache is cleared when linked file is modified
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -42,7 +42,7 @@
}
],
"require": {
"php": "^7.3",
"php": "^7.4",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
Expand Down Expand Up @@ -84,7 +84,7 @@
},
"config": {
"platform": {
"php": "7.3.12"
"php": "7.4.0"
},
"sort-packages": true
},
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88d0e3d

Please sign in to comment.