Try to trap apache log

This commit is contained in:
Laurent Destailleur 2019-01-19 17:38:05 +01:00
parent 616aa1f81c
commit 9a6517a3bd
2 changed files with 3 additions and 2 deletions

View File

@ -281,7 +281,7 @@ script:
# The wget should return a page with line '<meta name="generator" content="Dolibarr installer"> # The wget should return a page with line '<meta name="generator" content="Dolibarr installer">
wget -O - http://127.0.0.1 > test.html wget -O - http://127.0.0.1 > test.html
head test.html head test.html
sudo cat /var/log/apache2/error.log sudo cat /var/log/apache2/travis_error_log
set +e set +e
echo echo
@ -379,7 +379,7 @@ after_failure:
done done
# Apache log file # Apache log file
echo "Debugging informations for file apache error.log" echo "Debugging informations for file apache error.log"
sudo cat /var/log/apache2/error.log sudo cat /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)"

View File

@ -1,5 +1,6 @@
<VirtualHost *:80> <VirtualHost *:80>
DocumentRoot %TRAVIS_BUILD_DIR%/htdocs DocumentRoot %TRAVIS_BUILD_DIR%/htdocs
ErrorLog /var/log/apache2/travis_error_log
<Directory "%TRAVIS_BUILD_DIR%/htdocs/"> <Directory "%TRAVIS_BUILD_DIR%/htdocs/">
Options FollowSymLinks MultiViews ExecCGI Options FollowSymLinks MultiViews ExecCGI