Commit Graph

67 Commits

Author SHA1 Message Date
Laurent Destailleur
20f1455090 FIX #4314 2016-01-08 15:45:23 +01:00
Laurent Destailleur
a4edd90320 Debug the cron module 2015-12-19 03:27:55 +01:00
Raphaël Doursenaud
bbe7498de6 Better Travis CI
NEW:
Cleaned up routines for better readability of both declaration and results.
PHP versions now really covered.
    The old code forced install of PHP and didn't use Travis provided versions.
    This resulted in the process not being executed with the declared PHP version.
Dropped MySQL in favor of MariaDB.
    This is now the FLOSS community standard.
    This should help avoid problems with buggy MySQL releases.
Fast finish enabled to show results faster.
Optimized tools installation with composer.
    The right version of the tool is installed for the PHP version under test.
New PHP linter to check for syntax errors.
    Parallelized for better speed.
Apache + PHP FPM for testing webservices.
    The previous mod_php configuration was not supported on Travis.
New global DEBUG environment variable to show verbose output with configuration files content.
IRC notification on #dolibarr@freenode for community awareness.

FIXES:
Bug in scripts preventing execution with environmentalized PHP.
Wrong detection of MAIN_URL_ROOT under specific circumstances.
    $_SERVER["DOCUMENT_ROOT"] empty and $_SERVER["SCRIPT_NAME"] populated.
Relative ignore directive in coding style ruleset to avoid bypassing test.
Unit test errors without an exit status.
    This prevented the CI from properly detecting and reporting the error.

TODOS:
PostgreSQL support.
    This one is tricky since we only have a MySQL dump and the syntax is not directly compatible.
SQLite support.
    Disabled in core at the moment.
Nginx + PHP FPM support.
    Test webservices on the second most popular webserver.
Run dev/* checks.
    We have a nice collection of scripts we could leverage.
Check Javascript.
Check CSS.
Check SQL.
2015-12-13 21:34:36 +01:00
Laurent Destailleur
29fc2652e1 FIX #2519 2015-04-02 11:00:37 +02:00
Laurent Destailleur
d5ec19ef83 Enhance help when running cron script from command line 2015-02-11 13:21:12 +01:00
Laurent Destailleur
2e3400a039 Enhance help when running script from command line 2015-02-11 12:29:39 +01:00
Laurent Destailleur
212e9825a3 Qual: Function getmypid were renamed into dol_getmypid. 2014-07-31 17:35:58 +02:00
Raphaël Doursenaud
f8f502d013 Removed closing php tag
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-05-03 18:18:44 +02:00
Laurent Destailleur
9da5f7f47a Qual: Doxygen 2013-08-22 16:49:23 +02:00
Cédric Salvador
edc5de4f24 indentation 2013-07-01 15:42:14 +02:00
Cédric Salvador
aa4f2ba8fb made it possible to call a function from a library
Conflicts:
	htdocs/install/mysql/tables/llx_cronjob.sql
	scripts/cron/cron_run_jobs.php
2013-07-01 15:41:27 +02:00
Laurent Destailleur
89ee79f5cf New: Implement same rule for return value of all command line scripts (0
when success, <>0 if error).
2013-06-09 14:40:33 +02:00
Raphaël Doursenaud
686f5add82 Normalized line endings to LF 2013-06-05 16:12:07 +02:00
Laurent Destailleur
e9df560b74 New: Show process id in all command line scripts 2013-05-22 12:23:42 +02:00
Laurent Destailleur
64ff559a80 Qual: Uniformize script headers 2013-05-15 11:24:18 +02:00
Laurent Destailleur
89365786a8 New: enhance tool fixdosfiles.sh
Convert DOS files to unix
2013-03-30 14:27:13 +01:00
Laurent Destailleur
c3589e9785 Some debug into cron module:
- Because cron is a module, constant must start with CRON_.
- Miscellanous fixes.
- For external link to run jobs from url, we must forge url using conf
file and not autodetect url.
2013-03-23 19:23:17 +01:00
Laurent Destailleur
350bcea183 Merge 2013-03-22 17:10:17 +01:00
Laurent Destailleur
05ea7a0af9 Qual: Removed deprecated code 2009-07-10 09:14:09 +00:00
Laurent Destailleur
416c559d1b Add old deprecated code 2009-07-10 09:12:46 +00:00
Laurent Destailleur
a2e789792f Qual: Removed deprecated code 2009-07-10 09:04:23 +00:00
Laurent Destailleur
c699cd548b Qual: Removed deprecated code 2009-07-10 08:52:50 +00:00
Laurent Destailleur
726b3c1d72 New: Store and show estimated value of stock 2009-07-10 02:26:19 +00:00
Laurent Destailleur
04915533f2 Fix: Must not use DOL_DATA_ROOT directly 2009-04-29 18:44:37 +00:00
Laurent Destailleur
8ea5673872 First changes to prepare cron module 2009-03-07 01:30:47 +00:00
Laurent Destailleur
8faa018266 First changes to prepare cron module 2009-03-07 01:03:20 +00:00
Laurent Destailleur
8eb76f5a33 First changes to prepare cron module 2009-03-07 00:56:00 +00:00
Laurent Destailleur
0823322ba1 Qual: All call to dolibarr_ functions are made on dol_ functions. 2009-02-20 22:53:15 +00:00
Laurent Destailleur
4b8786fda6 Make message more clear 2008-11-26 12:21:33 +00:00
Laurent Destailleur
4d0a68d48c Removed all now() and sysdate() database sql inline function by a date defined by PHP ($db->idate(mktime())).
This is to be more portable, to solve problem when database server time differs from PHP server and to prepare for TZ support.
2008-08-27 18:53:27 +00:00
Laurent Destailleur
27da67a76f Qual Uniformize grph generation code
Look: Add transparency
2008-08-25 21:56:04 +00:00
Laurent Destailleur
02464c4a2c Qual: Reorganise files: Remove class from root directory. 2008-04-19 23:42:04 +00:00
Laurent Destailleur
8ef750cb73 Fix: Minor fixes
Qual: Remove deprecated file
2008-03-05 23:21:59 +00:00
Laurent Destailleur
579c94d335 Fix: Minor fixes
Qual: Remove deprecated file
2008-03-05 18:33:31 +00:00
Laurent Destailleur
ea42bcc543 Les script doivent pouvoir se lancer depuis n'importe quel rep 2007-03-24 18:34:11 +00:00
Rodolphe Quiedeville
97cba5169a Test si il y a des valeurs a grapher 2006-12-19 09:00:20 +00:00
Rodolphe Quiedeville
f2d4c023e3 Bugfix index des tableaux 2006-12-18 13:46:41 +00:00
Rodolphe Quiedeville
233711da8c Bugfix remplissage des blancs 2006-12-18 13:45:52 +00:00
Rodolphe Quiedeville
7fc5fe0505 Bugfix sur le calcul 2006-12-18 13:37:29 +00:00
Rodolphe Quiedeville
ae40b763ed Modifie le calcul sur le prix PMP 2006-12-13 14:26:05 +00:00
Rodolphe Quiedeville
c987130203 Desactivation du script
Il reste fonctionnel mais ne fais rien pour les install avec auto cvs update
2006-12-13 12:18:26 +00:00
Rodolphe Quiedeville
2fa9085ada Oubli print de debug (grrrrrr) 2006-12-11 15:33:14 +00:00
Rodolphe Quiedeville
612caf7d85 Ne graph que si il y a des donnees 2006-12-11 15:32:36 +00:00
Rodolphe Quiedeville
3e48184941 Bugfix sur le compatge du nombre d'unites vendus 2006-12-11 15:08:22 +00:00
Rodolphe Quiedeville
3373c15faa Oubli print de debuggage 2006-12-11 14:58:11 +00:00
Rodolphe Quiedeville
f415b29423 Bugfix 2006-12-11 14:43:16 +00:00
Rodolphe Quiedeville
f6597f94de Nouveau fichiers
Gnration des graph associes aux produits
2006-12-11 14:41:33 +00:00
Rodolphe Quiedeville
225ff111d1 Utilisation de DolGraph 2006-12-11 10:16:40 +00:00
Rodolphe Quiedeville
73640098dc Modif titre graph 2006-12-11 09:57:15 +00:00
Rodolphe Quiedeville
87a8716e98 Bugfix sur la reinit des tableaux de donnees 2006-12-10 20:02:44 +00:00