mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-23 00:36:10 +01:00
Daniel Siepmann
070e901dbb
* FEATURE: Add code coverage for tests to travis and scrutinizer * To detect which parts still need to be tested * BUGFIX: Fix broken TYPO3 installation for tests * We need the source, otherwise a base test file will be missing
35 lines
1,016 B
Makefile
35 lines
1,016 B
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 ?= "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
|
|
|
|
unitTests:
|
|
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) \
|
|
.Build/bin/phpunit --colors --debug -v \
|
|
-c Tests/Unit/UnitTests.xml
|
|
|
|
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
|
|
|
|
.PHONY: Tests
|
|
Tests: unitTests functionalTests
|
|
|
|
clean:
|
|
rm -rf .Build composer.lock
|