mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-11 04:16:11 +01:00
Daniel Siepmann
c68f853b63
* Adjust fixtures to be strict mode compatible. * Adjust documentation to cover requirements for development. * Notice that strict mode is not supported by TYPO3. * Document how to handle tests against multiple TYPO3 versions.
38 lines
1.3 KiB
Makefile
38 lines
1.3 KiB
Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
current_dir := $(dir $(mkfile_path))
|
|
|
|
TYPO3_WEB_DIR := $(current_dir).Build/Web
|
|
# Allow different versions on travis
|
|
TYPO3_VERSION ?= ~6.2.19
|
|
typo3DatabaseName ?= "searchcore_test"
|
|
typo3DatabaseUsername ?= "dev"
|
|
typo3DatabasePassword ?= "dev"
|
|
typo3DatabaseHost ?= "127.0.0.1"
|
|
|
|
.PHONY: install
|
|
install: clean
|
|
COMPOSER_PROCESS_TIMEOUT=1000 composer require -vv --dev --prefer-source typo3/cms="$(TYPO3_VERSION)"
|
|
git checkout composer.json
|
|
|
|
functionalTests:
|
|
typo3DatabaseName=$(typo3DatabaseName) \
|
|
typo3DatabaseUsername=$(typo3DatabaseUsername) \
|
|
typo3DatabasePassword=$(typo3DatabasePassword) \
|
|
typo3DatabaseHost=$(typo3DatabaseHost) \
|
|
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) \
|
|
.Build/bin/phpunit --colors --debug -v \
|
|
-c Tests/Functional/FunctionalTests.xml
|
|
|
|
uploadCodeCoverage: uploadCodeCoverageToScrutinizer uploadCodeCoverageToCodacy
|
|
|
|
uploadCodeCoverageToScrutinizer:
|
|
wget https://scrutinizer-ci.com/ocular.phar && \
|
|
php ocular.phar code-coverage:upload --format=php-clover .Build/report/functional/clover/coverage
|
|
|
|
uploadCodeCoverageToCodacy:
|
|
composer require -vv --dev codacy/coverage && \
|
|
git checkout composer.json && \
|
|
php .Build/bin/codacycoverage clover .Build/report/functional/clover/coverage
|
|
|
|
clean:
|
|
rm -rf .Build composer.lock
|