Show version in travis settings

This commit is contained in:
Laurent Destailleur 2018-04-22 18:12:19 +02:00
parent 46e448a086
commit 7f8f55a54b
2 changed files with 24 additions and 22 deletions

View File

@ -173,22 +173,27 @@ before_script:
echo echo
- | - |
if [ "$DEBUG" = true ]; then echo "Versions information"
echo "Debugging informations" # Check PHP
# Check PHP echo "PHP version"
php -i php -i | head -
# Check PHP CodeSniffer installation # Check PHP CodeSniffer installation
which phpcs echo "PHPCS version"
phpcs --version which phpcs
phpcs -i phpcs --version | head -
# Check PHPUnit installation phpcs -i | head -
which phpunit # Check PHPUnit installation
phpunit --version echo "PHPUnit version"
# Check MySQL which phpunit
mysql --version phpunit --version | head -
mysql -e "SELECT VERSION();" # Check Apache version
echo echo "Apache version"
fi apache2 -v | head -
# Check MariaDb
echo "MariaDb version"
mysql --version | head -
mysql -e "SELECT VERSION();" | head -
echo
- | - |
echo "Setting up database" echo "Setting up database"
@ -335,7 +340,6 @@ script:
- | - |
echo "Unit testing" 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. # Ensure we catch errors. Set this to +e if you want to go to the end to see dolibarr.log file.
set -e set -e
phpunit -d memory_limit=-1 -c test/phpunit/phpunittest.xml test/phpunit/AllTests.php phpunit -d memory_limit=-1 -c test/phpunit/phpunittest.xml test/phpunit/AllTests.php

View File

@ -138,9 +138,7 @@
<rule ref="Generic.NamingConventions.ConstructorName" /> <rule ref="Generic.NamingConventions.ConstructorName" />
<!-- Check if we use PHP4 constructor instead of __construct() --> <!-- Check if we use PHP4 constructor instead of __construct() -->
<rule ref="Generic.NamingConventions.ConstructorName.OldStyle"> <rule ref="Generic.NamingConventions.ConstructorName.OldStyle" />
<severity>0</severity>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName" /> <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
@ -156,8 +154,8 @@
<!-- Warning when using @ before functions --> <!-- Warning when using @ before functions -->
<!-- <rule ref="Generic.PHP.NoSilencedErrors" /> --> <!-- <rule ref="Generic.PHP.NoSilencedErrors" /> -->
<!-- Say if null, true, false must be uppercase --> <!-- Say if null, true, false must be uppercase (Rule 2.5 of PSR2 https://www.php-fig.org/psr/psr-2/) -->
<!-- <rule ref="Generic.PHP.UpperCaseConstant" /> --> <rule ref="Generic.PHP.LowerCaseConstant" />
<rule ref="Generic.Strings.UnnecessaryStringConcat" /> <rule ref="Generic.Strings.UnnecessaryStringConcat" />