mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-25 08:56:11 +01:00
Daniel Siepmann
96a1db31ed
There is no need to require anything, as only a single TYPO3 version is supported.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
current_dir := $(dir $(mkfile_path))
|
|
|
|
TYPO3_WEB_DIR := $(current_dir).Build/web
|
|
TYPO3_PATH_ROOT := $(current_dir).Build/web
|
|
# Allow different versions on travis
|
|
TYPO3_VERSION ?= ^9.5
|
|
typo3DatabaseName ?= "searchcore_test"
|
|
typo3DatabaseUsername ?= "dev"
|
|
typo3DatabasePassword ?= "dev"
|
|
typo3DatabaseHost ?= "127.0.0.1"
|
|
|
|
.PHONY: install
|
|
install: clean
|
|
composer install
|
|
|
|
cgl:
|
|
./.Build/bin/phpcs
|
|
|
|
functionalTests:
|
|
typo3DatabaseName=$(typo3DatabaseName) \
|
|
typo3DatabaseUsername=$(typo3DatabaseUsername) \
|
|
typo3DatabasePassword=$(typo3DatabasePassword) \
|
|
typo3DatabaseHost=$(typo3DatabaseHost) \
|
|
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) \
|
|
.Build/bin/phpunit --colors -v \
|
|
-c Tests/Functional/FunctionalTests.xml
|
|
|
|
unitTests:
|
|
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) \
|
|
.Build/bin/phpunit --colors -v \
|
|
-c Tests/Unit/UnitTests.xml
|
|
|
|
uploadCodeCoverage: uploadCodeCoverageToScrutinizer
|
|
|
|
uploadCodeCoverageToScrutinizer:
|
|
wget https://scrutinizer-ci.com/ocular.phar && \
|
|
php ocular.phar code-coverage:upload --format=php-clover .Build/report/functional/clover/coverage
|
|
|
|
clean:
|
|
rm -rf .Build/ var/ composer.lock
|