Show version in travis settings
This commit is contained in:
parent
46e448a086
commit
7f8f55a54b
26
.travis.yml
26
.travis.yml
@ -173,22 +173,27 @@ before_script:
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
- |
|
- |
|
||||||
if [ "$DEBUG" = true ]; then
|
echo "Versions information"
|
||||||
echo "Debugging informations"
|
|
||||||
# Check PHP
|
# Check PHP
|
||||||
php -i
|
echo "PHP version"
|
||||||
|
php -i | head -
|
||||||
# Check PHP CodeSniffer installation
|
# Check PHP CodeSniffer installation
|
||||||
|
echo "PHPCS version"
|
||||||
which phpcs
|
which phpcs
|
||||||
phpcs --version
|
phpcs --version | head -
|
||||||
phpcs -i
|
phpcs -i | head -
|
||||||
# Check PHPUnit installation
|
# Check PHPUnit installation
|
||||||
|
echo "PHPUnit version"
|
||||||
which phpunit
|
which phpunit
|
||||||
phpunit --version
|
phpunit --version | head -
|
||||||
# Check MySQL
|
# Check Apache version
|
||||||
mysql --version
|
echo "Apache version"
|
||||||
mysql -e "SELECT VERSION();"
|
apache2 -v | head -
|
||||||
|
# Check MariaDb
|
||||||
|
echo "MariaDb version"
|
||||||
|
mysql --version | head -
|
||||||
|
mysql -e "SELECT VERSION();" | head -
|
||||||
echo
|
echo
|
||||||
fi
|
|
||||||
|
|
||||||
- |
|
- |
|
||||||
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
|
||||||
|
|||||||
@ -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" />
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user