From 7f8f55a54b3cb44d8a408976e3ed1675853cdf41 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Apr 2018 18:12:19 +0200 Subject: [PATCH] Show version in travis settings --- .travis.yml | 38 +++++++++++++++++-------------- dev/setup/codesniffer/ruleset.xml | 8 +++---- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index c99086552c6..7c0d782280f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -173,22 +173,27 @@ before_script: echo - | - if [ "$DEBUG" = true ]; then - echo "Debugging informations" - # Check PHP - php -i - # Check PHP CodeSniffer installation - which phpcs - phpcs --version - phpcs -i - # Check PHPUnit installation - which phpunit - phpunit --version - # Check MySQL - mysql --version - mysql -e "SELECT VERSION();" - echo - fi + echo "Versions information" + # Check PHP + echo "PHP version" + php -i | head - + # Check PHP CodeSniffer installation + echo "PHPCS version" + which phpcs + phpcs --version | head - + phpcs -i | head - + # Check PHPUnit installation + echo "PHPUnit version" + which phpunit + phpunit --version | head - + # Check Apache version + echo "Apache version" + apache2 -v | head - + # Check MariaDb + echo "MariaDb version" + mysql --version | head - + mysql -e "SELECT VERSION();" | head - + echo - | echo "Setting up database" @@ -335,7 +340,6 @@ script: - | echo "Unit testing" - phpunit --version # Ensure we catch errors. Set this to +e if you want to go to the end to see dolibarr.log file. set -e phpunit -d memory_limit=-1 -c test/phpunit/phpunittest.xml test/phpunit/AllTests.php diff --git a/dev/setup/codesniffer/ruleset.xml b/dev/setup/codesniffer/ruleset.xml index e5485b280ae..5e2337fd67e 100644 --- a/dev/setup/codesniffer/ruleset.xml +++ b/dev/setup/codesniffer/ruleset.xml @@ -138,9 +138,7 @@ - - 0 - + @@ -156,8 +154,8 @@ - - + +