2016-12-09 13:01:09 +01:00
|
|
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
|
|
current_dir := $(dir $(mkfile_path))
|
|
|
|
|
|
|
|
TYPO3_WEB_DIR := $(current_dir).Build/Web
|
|
|
|
# Allow different versions on travis
|
2016-12-09 19:45:46 +01:00
|
|
|
TYPO3_VERSION ?= ~6.2.19
|
|
|
|
typo3DatabaseName ?= "test"
|
|
|
|
typo3DatabaseUsername ?= "dev"
|
|
|
|
typo3DatabasePassword ?= "dev"
|
|
|
|
typo3DatabaseHost ?= "127.0.0.1"
|
2016-12-09 13:01:09 +01:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2016-12-09 19:57:23 +01:00
|
|
|
rm -rf .Build
|
2016-12-09 19:50:53 +01:00
|
|
|
COMPOSER_PROCESS_TIMEOUT=1000 composer require -vvv --dev --prefer-source typo3/cms="$(TYPO3_VERSION)"
|
2016-12-09 13:01:09 +01:00
|
|
|
|
|
|
|
git checkout composer.json
|
|
|
|
mkdir -p $(TYPO3_WEB_DIR)/uploads $(TYPO3_WEB_DIR)/typo3temp
|
|
|
|
|
2016-12-09 19:45:46 +01:00
|
|
|
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
|
|
|
|
|
2016-12-09 13:01:09 +01:00
|
|
|
.PHONY: Tests
|
2016-12-09 19:45:46 +01:00
|
|
|
Tests: unitTests functionalTests
|