mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 12:16:11 +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
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
language: php
|
|
|
|
php:
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
|
|
env:
|
|
global:
|
|
- TYPO3_DATABASE_NAME="typo3_ci"
|
|
- TYPO3_DATABASE_HOST="127.0.0.1"
|
|
- TYPO3_DATABASE_USERNAME="travis"
|
|
- TYPO3_DATABASE_PASSWORD=""
|
|
- typo3DatabaseName="typo3_ci"
|
|
- typo3DatabaseHost="127.0.0.1"
|
|
- typo3DatabaseUsername="travis"
|
|
- typo3DatabasePassword=""
|
|
matrix:
|
|
- TYPO3_VERSION="~6.2"
|
|
- TYPO3_VERSION="~7.6"
|
|
- TYPO3_VERSION="dev-master"
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
exclude:
|
|
# TYPO3 no longer supports 5.6
|
|
- env: TYPO3_VERSION="dev-master"
|
|
php: 5.6
|
|
# There is some error with 6.2 and 7 not finding the "UnitTestsBootstrap.php"
|
|
- env: TYPO3_VERSION="~6.2"
|
|
php: 7.0
|
|
- env: TYPO3_VERSION="~6.2"
|
|
php: 7.1
|
|
allow_failures:
|
|
- env: TYPO3_VERSION="dev-master"
|
|
php: 7.0
|
|
- env: TYPO3_VERSION="dev-master"
|
|
php: 7.1
|
|
|
|
services:
|
|
- mysql
|
|
- elasticsearch
|
|
|
|
install: make install
|
|
|
|
script: make Tests
|
|
|
|
after_script:
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover .Build/report/unit/clover/coverage
|
|
- php ocular.phar code-coverage:upload --format=php-clover .Build/report/functional/clover/coverage
|
|
- make clean
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|