Commit Graph

61 Commits

Author SHA1 Message Date
Laurent Destailleur
2262c1c7dd Fix code generator 2016-08-08 21:58:47 +02:00
Laurent Destailleur
79be93d998 FIX The table llx_product_lot is now filled/used to store eatby/sellby
dates.
2016-05-17 18:19:36 +02:00
Laurent Destailleur
3b99fb01ee Fix duplicate table 2016-05-17 10:51:03 +02: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
f49fab8a7e Rename some files in english and increase fields size. 2015-11-09 16:48:30 +01:00
Laurent Destailleur
e689e9ed76 Debug generator de code 2015-11-05 21:33:05 +01:00
Laurent Destailleur
f914873094 Better code generator 2015-11-05 20:31:51 +01:00
Laurent Destailleur
d2fa580f5d The code generator can generate a list.php page with all feature
immediatly working (sort, extrafields, hooks, select fields to show...)
2015-11-05 13:43:22 +01:00
Laurent Destailleur
832afa139a Update skeleton to generate a list page and a card page. 2015-11-04 16:13:50 +01:00
Laurent Destailleur
10aacb8811 Fix code generator 2015-09-08 20:08:47 +02:00
Laurent Destailleur
9cd5e7cafa Fix some errors into code generator. 2015-09-07 15:03:38 +02:00
Florian HENRY
ab3e1631f4 FIX : php_build_class_from_table comma ending on insert 2015-07-28 11:20:00 +02:00
Florian HENRY
bfcce0d36d fix syntax 2015-07-13 14:34:51 +02:00
Florian HENRY
242a906e40 fix syntax 2015-07-13 14:33:25 +02:00
Florian HENRY
7ba831bf84 FIX : #3192 2015-07-13 14:24:37 +02:00
Florian HENRY
058042d09d NEW : update skeleton and class builder 2015-03-18 17:52:17 +01:00
Laurent Destailleur
be3f458754 Fix: Pb with pgsql 2014-09-03 11:30:13 +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
473b0f73be New: build_class_from_table can work with a distant database server. 2014-02-26 10:42:45 +01:00
Laurent Destailleur
f1f7ff315f Fix: CRLF 2013-01-16 15:54:07 +01:00
Laurent Destailleur
d11cee399a Merge remote-tracking branch 'origin/3.3' into develop
Conflicts:
	COPYRIGHT
	htdocs/core/tpl/freeproductline_create.tpl.php
	htdocs/core/tpl/predefinedproductline_create.tpl.php
	htdocs/install/mysql/tables/llx_c_availability.sql
2013-01-16 15:45:17 +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
de739c58a1 Fix generator of page 2013-01-16 12:57:09 +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
76a6d6a6fe 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
7f49af4b15 Fix: Replace fails 2011-03-09 00:14:25 +00:00
Laurent Destailleur
1dba8e0465 Fix: syntax error 2011-02-14 21:44:23 +00:00
Regis Houssin
6d3269bb69 Fix: replace addslashes by $db->escape for postgresql compatibility 2011-02-14 16:18:23 +00:00
Laurent Destailleur
8f0f05cb22 Use small php 2011-01-23 01:00:45 +00:00
Laurent Destailleur
3d4e72dbf8 Add more log 2010-09-06 00:34:10 +00:00
Laurent Destailleur
2e6b811f42 New: Work on invoice creation when creating subscription 2010-09-05 19:28:05 +00:00
Philippe Grand
fb06c15330 task #6689, strlen problem
replace  strlen with dol_strlen
2010-08-24 14:42:18 +00:00
Laurent Destailleur
1e40ddd202 Doc 2010-06-23 12:08:18 +00:00
Laurent Destailleur
b8fe34988c Remove log 2010-05-18 08:22:42 +00:00
Regis Houssin
73f216fd89 Fix: rename $class to $classname to prevents problems
http://www.manuelphp.com/php/reserved.keywords.php
2010-04-09 07:55:37 +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
Philippe Grand
c942d1928e Some spelling changes 2010-03-15 09:39:07 +00:00
Regis Houssin
e420c6cc7c Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0 2009-10-22 11:13:31 +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
6bcaee2a44 Prepare 2.6 version 2009-03-29 01:25:40 +00:00
Laurent Destailleur
150c73f049 Use idate and jdate to store date 2009-01-04 22:09:02 +00:00
Laurent Destailleur
c4575c4302 Fix: Update of planed end date not working 2008-12-31 14:55:20 +00:00
Laurent Destailleur
4701a45ae4 Fix: addslashes in insert request 2008-12-04 21:58:55 +00:00
Laurent Destailleur
da779e3e95 Add createFromClone function in skeleton 2008-11-20 21:26:53 +00:00