mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-21 22:36:11 +01:00
FEATURE: Add travis ci (#1)
* To automate tests and display results in pull requests.
This commit is contained in:
parent
224f945d82
commit
d89e616a4f
2 changed files with 57 additions and 0 deletions
37
.travis.yml
Normal file
37
.travis.yml
Normal file
|
@ -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
|
20
Makefile
Normal file
20
Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue