@@ -8,7 +8,8 @@ DOCKER_RUN := docker-compose run --rm test
88PREFER_LOWEST ?=
99
1010.PHONY : install composer clean help run
11- .PHONY : test lint lint-fix test-unit test-integration test-matrix test-coverage test-coverage-html test-coverage-clover
11+ .PHONY : lint lint-fix
12+ .PHONY : test test-unit test-example test-lowest test-matrix test-coverage test-coverage-html test-coverage-clover
1213
1314.SILENT : help
1415
@@ -39,16 +40,22 @@ lint-fix: ## Run phpcsf and fix possible lint errors.
3940 ${DOCKER_RUN} vendor/bin/phpcbf -p src/ tests/
4041
4142test-unit : # # Run the unit testsuite.
42- ${DOCKER_RUN} vendor/bin/phpunit --colors=always -- testsuite unit
43+ ${DOCKER_RUN} vendor/bin/phpunit --testsuite unit
4344
4445test-example : # # Run the example application
4546 ${DOCKER_RUN} php tests/example/app.php
4647
48+ test-lowest : # # Test using the lowest possible versions of the dependencies
49+ test-lowest : PREFER_LOWEST=--prefer-lowest
50+ test-lowest : build-update test
51+
4752test-matrix : # # Run the unit tests against multiple targets.
53+ ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:5.5-alpine" PREFER_LOWEST=--prefer-lowest build-update test
4854 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:5.6-alpine" PREFER_LOWEST=--prefer-lowest build-update test
4955 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:7.0-alpine" PREFER_LOWEST=--prefer-lowest build-update test
5056 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:7.1-alpine" PREFER_LOWEST=--prefer-lowest build-update test
5157 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} hhvm/hhvm:latest" PREFER_LOWEST=--prefer-lowest build-update test
58+ ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:5.5-alpine" build-update test
5259 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:5.6-alpine" build-update test
5360 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:7.0-alpine" build-update test
5461 ${MAKE} DOCKER_RUN=" ${DOCKER_RUN_BASE} php:7.1-alpine" build-update test
0 commit comments