Commit Graph

50 Commits

Author SHA1 Message Date
Laurent Destailleur
f25a9030eb Merge remote-tracking branch 'origin/3.8' into develop
Conflicts:
	.travis.yml
	htdocs/core/modules/askpricesupplier/doc/pdf_aurore.modules.php
	htdocs/core/modules/commande/doc/pdf_proforma.modules.php
	htdocs/includes/adodbtime/adodb-time.inc.php
	htdocs/langs/en_US/accountancy.lang
2015-12-18 22:12:03 +01:00
Laurent Destailleur
dd3f5a32d3 Merge remote-tracking branch 'origin/3.7' into 3.8
Conflicts:
	.travis.yml
	composer.json
	htdocs/accountancy/admin/card.php
2015-12-18 21:20:12 +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
Raphaël Doursenaud
c0862762a5 Fix #3930 Removed executable bit
These files doesn't contain executable code and may pose a security
threat.
2015-12-09 13:28:36 +01:00
Laurent Destailleur
d2b221cfd1 Upgrade PHPCS rules 2015-12-04 10:22:27 +01:00
Laurent Destailleur
b7cff09ce6 Fixed travis errors 2015-01-22 21:46:22 +01:00
Laurent Destailleur
11368e48fe Update codesniffer to remove travis errors. 2014-12-20 00:11:12 +01:00
Laurent Destailleur
789d588fde Update codesniffer to remove travis errors. 2014-12-19 19:10:41 +01:00
Laurent Destailleur
0bb431c4d0 Merge remote-tracking branch 'origin/3.5' into 3.6
Conflicts:
	dev/codesniffer/ruleset.xml
2014-12-19 19:03:05 +01:00
Laurent Destailleur
47cab90336 Update codesniffer to remove travis errors. 2014-12-19 19:01:29 +01:00
Laurent Destailleur
3debf56c68 Update phpcs 2014-12-18 23:54:39 +01:00
Laurent Destailleur
b1c4d32fbf Update phpcs file 2014-12-18 23:53:17 +01:00
Laurent Destailleur
85ccb094b4 Fix: More complete exclusion list 2014-07-20 15:54:37 +02:00
Laurent Destailleur
0452c2d68e Qual: Enhance PHPCS sheet. 2014-07-20 15:39:38 +02:00
Laurent Destailleur
72557437ef Checkstyle 2013-09-10 14:19:36 +02:00
Laurent Destailleur
943f8108ab Fix a rule 2013-09-10 12:11:08 +02:00
Laurent Destailleur
376a7e2e3c Remove checkstyle outpout that is too verbose.
USe instead option -s
Disable a rule
2013-09-10 11:59:15 +02:00
Laurent Destailleur
c351ac5bbd Fix: syntax error in ruleset.xml 2013-09-10 02:32:24 +02:00
Laurent Destailleur
5e63642fcb Change to ignore bad detection of ident by PEAR code sniffer. 2012-08-27 17:55:15 +02:00
Laurent Destailleur
6311da9428 Qual: Removed error we need to keep 2012-07-26 09:34:51 +02:00
Laurent Destailleur
dce9b96260 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop

Conflicts:
	htdocs/core/lib/functions2.lib.php
	htdocs/install/lib/repair.lib.php
	htdocs/install/mysql/migration/3.2.0-3.3.0.sql
2012-07-25 12:20:45 +02:00
Laurent Destailleur
ea54523181 Checkstyle 2012-07-25 11:40:23 +02:00
Laurent Destailleur
758d613908 Fix: Checkstyle 2012-07-25 11:29:45 +02:00
Laurent Destailleur
0d6baa4288 Qual: Enhance codesniffer setup 2012-07-22 14:08:05 +02:00
Laurent Destailleur
50944a71db Checkstyle 2012-05-06 00:45:15 +02:00
Laurent Destailleur
87bd0054ba Qual: Increase nesting level 2012-03-18 23:41:36 +01:00
Laurent Destailleur
d6a60c085a Fix: syntax error 2012-03-18 17:51:40 +01:00
Laurent Destailleur
eeaccaf8a3 Remove a not important rule to keep rules that should be priority. 2012-03-18 17:16:46 +01:00
Laurent Destailleur
d5b3aae135 Removed todo counted twice 2012-01-16 12:50:55 +01:00
Laurent Destailleur
c8a61a20ab Removed rules 2012-01-10 10:24:16 +01:00
Laurent Destailleur
2d67802938 Doxygen 2012-01-08 00:52:07 +01:00
Laurent Destailleur
52cbfc240b Increase level for warning 2012-01-07 15:10:26 +01:00
Laurent Destailleur
7c017dff48 Comment sniff 2012-01-05 01:06:50 +01:00
Laurent Destailleur
83acf605c3 Removed checkstyle rule 2011-12-30 14:32:33 +01:00
Laurent Destailleur
77054323c4 Qual: Disable useless warnings 2011-09-24 14:19:24 +00:00
Regis Houssin
0483c3265a Fix: add rules 2011-09-21 11:54:41 +00:00
Laurent Destailleur
43c2bfb549 Qual: Removed false warnings 2011-09-20 18:19:04 +00:00
Laurent Destailleur
507aa3f52a Qual: Removed false warnings 2011-09-20 16:07:36 +00:00
Laurent Destailleur
bc25ed0834 Qual: Removed PHPCodesniffer error. 2011-09-16 17:57:09 +00:00
Laurent Destailleur
83e3a6e4a7 Qual: Removed all PHPCodesniffer error.
Qual: Removed a TODO.
Fix: A lib should not use a global $_POST.
2011-09-16 17:06:10 +00:00
Laurent Destailleur
d7c2b906cd Qual: Add more phpunit tests 2011-09-10 12:28:00 +00:00
Laurent Destailleur
b16060e0cd Qual: Optimize PHP Code sniffer rules 2011-08-28 17:40:51 +00:00
Laurent Destailleur
7f3e4b290d Removed a PHP code sniffer constraint 2011-08-28 17:08:13 +00:00
Laurent Destailleur
b4f7d1123e Qual: Optimize PHP Code sniffer rules 2011-08-28 17:40:51 +00:00
Laurent Destailleur
01277146de Removed a PHP code sniffer constraint 2011-08-28 17:08:13 +00:00
Laurent Destailleur
1bce86ae46 Qual: Optimize PHP Code sniffer rules 2011-08-28 17:40:51 +00:00
Laurent Destailleur
7e85bd9a35 Removed a PHP code sniffer constraint 2011-08-28 17:08:13 +00:00
Laurent Destailleur
76a6d6a6fe Qual: Optimize PHP Code sniffer rules 2011-08-28 17:40:51 +00:00
Laurent Destailleur
96f7e0ffa7 Removed a PHP code sniffer constraint 2011-08-28 17:08:13 +00:00
Laurent Destailleur
1f82f43d9a Qual: Move phpcodesniffer config into dev directory 2011-08-28 14:33:55 +00:00