forked from Wavyzz/dolibarr
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
20
.travis.yml
20
.travis.yml
@@ -29,7 +29,8 @@ matrix:
|
|||||||
- php: 7.0
|
- php: 7.0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=mysql
|
# - DB=mysql PHPCS_VERSION=">=1.5.1,<2.0"
|
||||||
|
- DB=mysql PHPCS_VERSION=">=2.0"
|
||||||
# - DB=postgres
|
# - DB=postgres
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@@ -44,11 +45,18 @@ before_script:
|
|||||||
- which phpunit
|
- which phpunit
|
||||||
- phpunit --version
|
- phpunit --version
|
||||||
- echo Install phpcs then show installed rules
|
- echo Install phpcs then show installed rules
|
||||||
- pyrus install pear/PHP_CodeSniffer
|
- cp composer.json composer.json.old
|
||||||
|
- cp composer.json.phpcs composer.json
|
||||||
|
- composer self-update
|
||||||
|
- composer require squizlabs/php_codesniffer:${PHPCS_VERSION}
|
||||||
|
- composer install
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- which phpcs
|
- ln -s `pwd` htdocs/includes/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility
|
||||||
- phpcs --version
|
- htdocs/includes/squizlabs/php_codesniffer/scripts/phpcs --version
|
||||||
- phpcs -i
|
# - which phpcs
|
||||||
|
# - phpcs --version
|
||||||
|
- htdocs/includes/squizlabs/php_codesniffer/scripts/phpcs -i
|
||||||
|
# - phpcs -i
|
||||||
- echo Create dir $(pwd)/htdocs/documents
|
- echo Create dir $(pwd)/htdocs/documents
|
||||||
- sudo mkdir -p $(pwd)/htdocs/documents/admin/temp;
|
- sudo mkdir -p $(pwd)/htdocs/documents/admin/temp;
|
||||||
- sudo touch $(pwd)/htdocs/documents/dolibarr.log;
|
- sudo touch $(pwd)/htdocs/documents/dolibarr.log;
|
||||||
@@ -139,7 +147,7 @@ script:
|
|||||||
- phpunit -d memory_limit=-1 --configuration test/phpunit/phpunittest.xml test/phpunit/AllTests.php
|
- phpunit -d memory_limit=-1 --configuration test/phpunit/phpunittest.xml test/phpunit/AllTests.php
|
||||||
- date
|
- date
|
||||||
# - phpcs -p --warning-severity=0 -s --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/dev/vagrant/,/documents/,/includes/,/test/report/ htdocs/core/class/dolgraph.class.php 2>&1
|
# - phpcs -p --warning-severity=0 -s --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/build/html/,/dev/vagrant/,/documents/,/includes/,/test/report/ htdocs/core/class/dolgraph.class.php 2>&1
|
||||||
- phpcs -p --warning-severity=0 -s --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/htdocs/conf/conf.php,/build/html/,/dev/vagrant/,/documents/,/includes/,/test/report/ . 2>&1
|
- htdocs/includes/squizlabs/php_codesniffer/scripts/phpcs -p --warning-severity=0 -s --report-checkstyle --report-summary --standard=dev/codesniffer/ruleset.xml --tab-width=4 --ignore=/htdocs/conf/conf.php,/build/html/,/dev/vagrant/,/documents/,/includes/,/test/report/ . 2>&1
|
||||||
- date
|
- date
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
|||||||
18
composer.json.phpcs
Normal file
18
composer.json.phpcs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "dolibarr/dolibarr",
|
||||||
|
"type": "project",
|
||||||
|
"description": "Dolibarr ERP & CRM is a modern and easy to use web software to manage your business",
|
||||||
|
"keywords": ["erp","crm","invoice","sme","proposal","order","stock"],
|
||||||
|
"homepage": "http://www.dolibarr.org",
|
||||||
|
"license": "GPL-3.0+",
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/Dolibarr/dolibarr/issues",
|
||||||
|
"forum": "http://www.dolibarr.org/forum",
|
||||||
|
"wiki": "http://wiki.dolibarr.org",
|
||||||
|
"irc": "irc://chat.freenode.net/dolibarr",
|
||||||
|
"source": "https://github.com/Dolibarr/dolibarr"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"vendor-dir": "htdocs/includes"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user