Try travis fix

This commit is contained in:
Laurent Destailleur 2022-09-20 19:13:15 +02:00
parent d922876c69
commit 14805813ab

View File

@ -31,7 +31,6 @@ before_install:
cp ~/.phpenv/versions/$PHP_VERSION_NAME/etc/conf.d/xdebug.ini /tmp/xdebug.ini cp ~/.phpenv/versions/$PHP_VERSION_NAME/etc/conf.d/xdebug.ini /tmp/xdebug.ini
phpenv config-rm xdebug.ini phpenv config-rm xdebug.ini
phpenv rehash phpenv rehash
phpenv config-add mysqli
echo echo
addons: addons:
@ -48,6 +47,10 @@ addons:
- apache2 - apache2
# We need pgloader for import mysql database into pgsql # We need pgloader for import mysql database into pgsql
- pgloader - pgloader
- php
- php-pgsql
- php-mysqli
- php-xml
env: env:
global: global:
@ -478,7 +481,7 @@ after_script:
#cat $TRAVIS_BUILD_DIR/documents/dolibarr.log #cat $TRAVIS_BUILD_DIR/documents/dolibarr.log
sudo tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log sudo tail -n 50 $TRAVIS_BUILD_DIR/documents/dolibarr.log
echo "After script - Output last lines of apache error.log" echo "After script - Output last lines of apache error.log"
ls /var/log/apache2 sudo ls /var/log/apache2
sudo tail -n 50 /var/log/apache2/travis_error_log sudo tail -n 50 /var/log/apache2/travis_error_log
after_success: after_success:
@ -497,7 +500,7 @@ after_failure:
done done
# Show Apache log file # Show Apache log file
echo "Debugging informations for file apache error.log" echo "Debugging informations for file apache error.log"
sudo cat /var/log/apache2/travis_error_log sudo tail -n 50 /var/log/apache2/travis_error_log
if [ "$DEBUG" = true ]; then if [ "$DEBUG" = true ]; then
# Dolibarr log file # Dolibarr log file
echo "Debugging informations for file dolibarr.log (latest 50 lines)" echo "Debugging informations for file dolibarr.log (latest 50 lines)"