Commit Graph

42 Commits

Author SHA1 Message Date
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
frederic34
6645b8a454 Cannot redeclare getmypid() 2014-07-31 10:21:47 +02:00
Marcos García de La Fuente
9fbd7806f0 More substitutions 2014-06-12 11:31:53 +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
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
Laurent Destailleur
e9df560b74 New: Show process id in all command line scripts 2013-05-22 12:23:42 +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
f4fe3de1c1 Qual: Update skeleton of script 2013-03-12 16:34:20 +01:00
Laurent Destailleur
8d206fdfb0 Prepare move to other licence. For the moment all answers for licence
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Laurent Destailleur
0de24cf6f1 Enhance generators 2012-06-27 01:27:22 +02:00
Laurent Destailleur
c3d9be25be Minor fix 2012-01-18 00:15:10 +01:00
Laurent Destailleur
69892eccf8 Qual: Optimize PHP Code sniffer rules 2011-08-28 17:40:51 +00:00
Regis Houssin
03711cf6f2 Fix: remove obsolete tags 2011-08-27 19:15:14 +00:00
Regis Houssin
726d9581dd Fix: remove obsolete tags (in progress) 2011-08-27 14:24:16 +00:00
Laurent Destailleur
e2c007305c Fix: Avoid errors into rpm packages 2011-07-31 22:21:57 +00:00
Laurent Destailleur
e0ba0f835f Qual: A lot of fixes to enhance package quality 2011-07-09 14:11:40 +00:00
Laurent Destailleur
8f0f05cb22 Use small php 2011-01-23 01:00:45 +00:00
Philippe Grand
17d9d2b774 Spelling change 2011-01-18 15:35:45 +00:00
Laurent Destailleur
a4f144f24d Qual: Uniformise code. user class use id in first param of fetch 2010-04-28 07:31:34 +00:00
Laurent Destailleur
9f722f671e Fix: Code simpler and works even if script file has no path when called by php interpreter 2010-03-16 18:46:28 +00:00
Laurent Destailleur
f3a1978b9a Fix: Use preg functions 2009-10-22 01:04:23 +00:00
Regis Houssin
0cc93c1015 Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0 2009-10-20 14:22:24 +00:00
Laurent Destailleur
9293e6c13a Doc 2009-09-12 14:43:49 +00:00
Laurent Destailleur
14bfa23fc6 Doc 2009-09-12 14:24:56 +00:00
Laurent Destailleur
cb3f178dbc Add samples for code example 2009-09-10 21:46:10 +00:00
Laurent Destailleur
c812c32808 Fix: Bad init of conf->entity 2009-09-01 15:47:29 +00:00
Laurent Destailleur
55aa8bc4bc Add a tool to merge all invoices in one PDF 2009-04-09 21:53:53 +00:00
Laurent Destailleur
8faa018266 First changes to prepare cron module 2009-03-07 01:03:20 +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
1476fac25c New: Add an autotranslator tool that use google to build/update language files for a new language. 2009-01-18 18:38:47 +00:00
Laurent Destailleur
3153f3b717 Fix: Code generator also build a php script 2008-08-02 13:23:36 +00:00
Laurent Destailleur
5b01f35870 Fix: Log level for error must be LOG_ERR and not LOG_ERROR 2008-08-02 11:44:17 +00:00
Laurent Destailleur
1a9e1a896f Fix: Correct errors in code generator 2008-08-02 11:26:43 +00:00
Laurent Destailleur
4100b04d44 Doc: Doxygen 2008-01-27 15:18:21 +00:00
Laurent Destailleur
7be351034c Doc: Doxygen 2008-01-27 15:18:21 +00:00
Laurent Destailleur
acd972fc94 Doc: Mise a jour pour doxygen 2008-01-20 18:47:10 +00:00
Laurent Destailleur
7ebf31e739 New: Ajout d'un debut de script build_class_from_table qui cre une classe d'accs une table depuis les infos de la table en base. 2008-01-11 18:47:30 +00:00
Laurent Destailleur
3beabdbb6f Mise a jour exemple 2007-11-19 22:04:34 +00:00
Laurent Destailleur
408428b2a9 Mise a jour exemple 2007-11-19 21:51:53 +00:00
Laurent Destailleur
149071e461 Fix: Supprime les balise Source qui provoque des pb avec la commande patch. Seule la balise Id doit etre presente. 2007-10-06 20:16:42 +00:00
Laurent Destailleur
6b25e96f98 Mise au norme modele script 2007-04-28 12:12:52 +00:00
Laurent Destailleur
9a0c1b98e2 New: Ajout de 3 squelettes de code example:
1 pour les classes
1 pour les scripts
1 pour les pages
2007-02-11 17:50:43 +00:00