This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* To automate tests and display results in pull requests.
- Loading branch information
1 parent
224f945
commit d89e616
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
|
||
env: | ||
matrix: | ||
- TYPO3_VERSION="~6.2" | ||
- TYPO3_VERSION="~7.6" | ||
- TYPO3_VERSION="dev-master" | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: TYPO3_VERSION="~6.2" | ||
php: 7.0 | ||
- env: TYPO3_VERSION="dev-master" | ||
php: 7.0 | ||
exclude: | ||
# TYPO3 no longer supports 5.6 | ||
- env: TYPO3_VERSION="dev-master" | ||
php: 5.6 | ||
|
||
before_install: | ||
- composer self-update | ||
- composer --version | ||
|
||
install: | ||
- make install | ||
|
||
script: | ||
- make Tests | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 | ||
|
||
.PHONY: install | ||
install: | ||
rm -rf .Build | ||
|
||
composer require --dev --prefer-source typo3/cms="$(TYPO3_VERSION)" | ||
composer update -vv | ||
|
||
git checkout composer.json | ||
mkdir -p $(TYPO3_WEB_DIR)/uploads $(TYPO3_WEB_DIR)/typo3temp | ||
|
||
.PHONY: Tests | ||
Tests: | ||
TYPO3_PATH_WEB=$(TYPO3_WEB_DIR) .Build/bin/phpunit --colors --debug -v -c Tests/Unit/UnitTests.xml |