aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2018-01-11 19:18:29 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-01-11 19:18:29 +0100
commita14c160beb360ffb00f255621030c77878f6c8a1 (patch)
tree7832431cb850b2bde52334f21ec8cfdb9b39756a
parent7642d334f827d1c077bb1444dfc4e79acf022891 (diff)
Update travis config (#1751)
I've enabled tests on PHP 7.2 since it's the latest stable version. I've also installed phpcs from composer since PEAR is not available for all versions of PHP.
-rw-r--r--.travis.yml19
-rw-r--r--app/Controllers/extensionController.php2
2 files changed, 8 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml
index 7bfefd8ce..0217b61c5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,18 +5,20 @@ php:
- '5.6'
- '7.0'
- '7.1'
+ - '7.2'
- hhvm
- nightly
install:
# newest version without https://github.com/squizlabs/PHP_CodeSniffer/pull/1404
- - pear install PHP_CodeSniffer-3.0.0RC4
+ - composer global require squizlabs/php_codesniffer "<=3.0.0RC4"
script:
- phpenv rehash
- |
if [[ $VALIDATE_STANDARD == yes ]]; then
- phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
+ COMPOSER_BIN=$(composer global config --absolute bin-dir)
+ $COMPOSER_BIN/phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
fi
- |
if [[ $CHECK_TRANSLATION == yes ]]; then
@@ -29,18 +31,11 @@ env:
matrix:
fast_finish: true
include:
+ # PHP 5.3 only runs on Ubuntu 12.04 (precise), not 14.04 (trusty)
- php: "5.3"
dist: precise
- - php: "7.1"
+ - php: "7.2"
env: CHECK_TRANSLATION=yes VALIDATE_STANDARD=no
allow_failures:
- # PHP 5.3 only runs on Ubuntu 12.04 (precise), not 14.04 (trusty)
- - php: "5.3"
- dist: precise
- - php: "5.4"
- - php: "5.5"
- - php: "5.6"
- - php: "7.0"
- - php: hhvm
- - php: nightly
- env: CHECK_TRANSLATION=yes VALIDATE_STANDARD=no
+ - dist: precise
diff --git a/app/Controllers/extensionController.php b/app/Controllers/extensionController.php
index bb846e921..311fd2e96 100644
--- a/app/Controllers/extensionController.php
+++ b/app/Controllers/extensionController.php
@@ -240,7 +240,7 @@ class FreshRSS_extension_Controller extends Minz_ActionController {
$res = recursive_unlink($ext->getPath());
if ($res) {
Minz_Request::good(_t('feedback.extensions.removed', $ext_name),
- $url_redirect);
+ $url_redirect);
} else {
Minz_Request::bad(_t('feedback.extensions.cannot_delete', $ext_name),
$url_redirect);