Minor config changes

Signed-off-by: Olivier Paroz (oparoz) <github@oparoz.com>
This commit is contained in:
Olivier Paroz (oparoz) 2017-04-23 18:36:18 +02:00
parent 0932190857
commit 4114cdace8
No known key found for this signature in database
GPG Key ID: 165E66587C7FE8B1
3 changed files with 5 additions and 6 deletions

View File

@ -15,9 +15,9 @@ filter:
- 'tests/*'
- 'build/*'
- 'documentation/*'
- 'controller/configapicontroller.php'
- 'controller/filesapicontroller.php'
- 'controller/previewapicontroller.php'
- 'lib/Controller/ConfigApiController.php'
- 'lib/Controller/FilesApiController.php'
- 'lib/Controller/PreviewApiController.php'
tools:
sensiolabs_security_checker: true

View File

@ -39,7 +39,6 @@ before_cache:
before_install:
# Disable opcache on PHP 7.0 as it crashes too easily
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ]; then sed -i '/opcache.so/d' ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;"
- php --modules
# Setup Selenium
@ -108,7 +107,7 @@ script:
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then php vendor/bin/codecept run unit,integration,api; fi;"
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' != 'mysql' ]; then php vendor/bin/codecept run unit,integration,api; fi;"
# PHP 5.6 ONLY: Unit, integration and api tests with code coverage
# PHP 7.0 ONLY: Unit, integration and api tests with code coverage
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then php vendor/bin/codecept run unit,integration,api --coverage --coverage-xml --coverage-html; fi;"
# We can't use phpdbg only as it doesn't work with the webdriver and we can't use it for some tests only as we can't merge html reports
# - sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then phpenv config-rm xdebug.ini; phpdbg -qrr vendor/bin/codecept run unit,integration,api --coverage --coverage-xml --coverage-html; fi;"

View File

@ -181,7 +181,7 @@ trait Preview {
*
* @param $status
*
* @return array<null,int>
* @return array<null|int>
*/
private function getErrorData($status = Http::STATUS_INTERNAL_SERVER_ERROR) {
return [null, $status];