This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
4,092 additions
and
1,330 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,49 @@ | ||
filter: | ||
excluded_paths: | ||
- 'Resources/Public/vendor/*' | ||
- 'Tests/*' | ||
|
||
tools: | ||
|
||
external_code_coverage: | ||
timeout: 700 | ||
|
||
php_sim: true | ||
|
||
php_code_sniffer: | ||
enabled: true | ||
command: phpcs -n | ||
config: | ||
standard: TYPO3CMS | ||
|
||
php_cs_fixer: false | ||
|
||
php_mess_detector: | ||
enabled: true | ||
config: | ||
code_size_rules: | ||
cyclomatic_complexity: true | ||
npath_complexity: true | ||
excessive_class_complexity: true | ||
controversial_rules: | ||
superglobals: false | ||
|
||
php_pdepend: true | ||
|
||
php_analyzer: | ||
enabled: true | ||
config: | ||
basic_semantic_checks: | ||
enabled: true | ||
property_on_interface: true | ||
missing_abstract_methods: true | ||
deprecation_checks: | ||
enabled: true | ||
simplify_boolean_return: | ||
enabled: true | ||
metrics_lack_of_cohesion_methods: | ||
enabled: true | ||
dead_assignments: | ||
enabled: true | ||
|
||
sensiolabs_security_checker: true |
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,52 @@ | ||
language: php | ||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
env: | ||
- DB=mysql TYPO3=coreapi/develop INTEGRATION=master COVERAGE=0 | ||
|
||
services: | ||
- memcached | ||
- redis-server | ||
|
||
notifications: | ||
email: | ||
- blueduck@gmx.net | ||
slack: | ||
rooms: | ||
- typo3:DHkQdCNWc6x2znPAYA5T2LXO#gsoc-coreapi | ||
|
||
before_script: | ||
# Get latest git version cause of travis issues (https://github.com/travis-ci/travis-ci/issues/1710) | ||
- sudo apt-get update && sudo apt-get install git parallel tree | ||
- > | ||
if [[ "$TRAVIS_PHP_VERSION" = "5.3" || "$TRAVIS_PHP_VERSION" = "5.4" ]]; then | ||
echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; | ||
echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; | ||
echo "apc.slam_defense=0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; | ||
pecl install igbinary > /dev/null; | ||
fi | ||
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- cd .. | ||
- git clone --single-branch --branch $INTEGRATION --depth 1 git://github.com/TYPO3-coreapi/TYPO3-Travis-Integration.git build-environment | ||
- source build-environment/install-helper.sh | ||
- git clone --single-branch --branch $TYPO3 --depth 1 https://github.com/TYPO3-coreapi/TYPO3CMS.git core | ||
- mv core/* . | ||
- composer self-update | ||
- composer --dev install | ||
- mkdir -p fileadmin uploads typo3temp typo3conf/ext/ | ||
- mv ext-coreapi typo3conf/ext/coreapi | ||
|
||
script: | ||
- phpLint typo3conf/ext/coreapi | ||
- > | ||
echo; | ||
echo "Running unit tests"; | ||
./bin/phpunit --colors --coverage-clover=coverage.clover -c typo3/sysext/core/Build/UnitTests.xml typo3conf/ext/coreapi/Tests/Unit/ | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- cp -R typo3conf/ext/coreapi/.git . | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
Oops, something went wrong.