diff --git a/Makefile b/Makefile index 2759b257..eaad81cd 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ PHPUNITDBG=phpdbg -qrr -d memory_limit=4096M -d zend.enable_gc=0 "$(PWD)/../../l PHP_CS_FIXER=php -d zend.enable_gc=0 vendor-bin/owncloud-codestyle/vendor/bin/php-cs-fixer PHAN=php -d zend.enable_gc=0 vendor-bin/phan/vendor/bin/phan PHPSTAN=php -d zend.enable_gc=0 vendor-bin/phpstan/vendor/bin/phpstan +BEHAT_BIN=vendor-bin/behat/vendor/bin/behat market_doc_files=LICENSE README.md CHANGELOG.md market_src_dirs=appinfo img js lib templates vendor @@ -39,6 +40,7 @@ dist_dir=$(build_dir)/dist # internal aliases composer_deps=vendor/ js_deps=node_modules/ +acceptance_test_deps=vendor-bin/behat/vendor # # Catch-all rules @@ -156,18 +158,18 @@ test-php-phpstan: vendor-bin/phpstan/vendor .PHONY: test-acceptance-api test-acceptance-api: ## Run API acceptance tests -test-acceptance-api: - ../../tests/acceptance/run.sh --remote --type api +test-acceptance-api: $(acceptance_test_deps) + BEHAT_BIN=$(BEHAT_BIN) ../../tests/acceptance/run.sh --remote --type api .PHONY: test-acceptance-cli test-acceptance-cli: ## Run CLI acceptance tests -test-acceptance-cli: - ../../tests/acceptance/run.sh --remote --type cli +test-acceptance-cli: $(acceptance_test_deps) + BEHAT_BIN=$(BEHAT_BIN) ../../tests/acceptance/run.sh --remote --type cli .PHONY: test-acceptance-webui test-acceptance-webui: ## Run webUI acceptance tests -test-acceptance-webui: - ../../tests/acceptance/run.sh --remote --type webUI +test-acceptance-webui: $(acceptance_test_deps) + BEHAT_BIN=$(BEHAT_BIN) ../../tests/acceptance/run.sh --remote --type webUI .PHONY: test-php-codecheck test-php-codecheck: @@ -204,3 +206,9 @@ vendor-bin/phpstan/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/phpstan vendor-bin/phpstan/composer.lock: vendor-bin/phpstan/composer.json @echo phpstan composer.lock is not up to date. + +vendor-bin/behat/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/behat/composer.lock + composer bin behat install --no-progress + +vendor-bin/behat/composer.lock: vendor-bin/behat/composer.json + @echo behat composer.lock is not up to date.