Test travis
This commit is contained in:
parent
14805813ab
commit
10aefeccfe
@ -468,7 +468,7 @@ script:
|
||||
- |
|
||||
echo "Unit testing"
|
||||
# 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
|
||||
phpunitresult=$?
|
||||
echo "Phpunit return code = $phpunitresult"
|
||||
|
||||
@ -82,7 +82,7 @@ if (!empty($useragent)) {
|
||||
|
||||
// Check PHP version min
|
||||
$arrayphpminversionerror = array(5, 6, 0);
|
||||
$arrayphpminversionwarning = array(5, 6, 0);
|
||||
$arrayphpminversionwarning = array(7, 0, 0);
|
||||
if (versioncompare(versionphparray(), $arrayphpminversionerror) < 0) { // Minimum to use (error if lower)
|
||||
print '<img src="../theme/eldy/img/error.png" alt="Error" class="valignmiddle"> '.$langs->trans("ErrorPHPVersionTooLow", versiontostring($arrayphpminversionerror));
|
||||
$checksok = 0; // 0=error, 1=warning
|
||||
|
||||
Loading…
Reference in New Issue
Block a user