Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
ae461815
Commit
ae461815
authored
Nov 29, 2015
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #4100 from frederic34/patch-10
Test travis for php7
parents
480623a6
d178c1bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+14
-6
14 additions, 6 deletions
.travis.yml
composer.json.phpcs
+18
-0
18 additions, 0 deletions
composer.json.phpcs
with
32 additions
and
6 deletions
.travis.yml
+
14
−
6
View file @
ae461815
...
...
@@ -29,7 +29,8 @@ matrix:
-
php
:
7.0
env
:
-
DB=mysql
# - DB=mysql PHPCS_VERSION=">=1.5.1,<2.0"
-
DB=mysql PHPCS_VERSION=">=2.0"
# - DB=postgres
before_script
:
...
...
@@ -44,11 +45,18 @@ before_script:
-
which phpunit
-
phpunit --version
-
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
-
which phpcs
-
phpcs --version
-
phpcs -i
-
ln -s `pwd` htdocs/includes/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility
-
htdocs/includes/squizlabs/php_codesniffer/scripts/phpcs --version
# - which phpcs
# - phpcs --version
-
htdocs/includes/squizlabs/php_codesniffer/scripts/phpcs -i
# - phpcs -i
-
echo Create dir $(pwd)/htdocs/documents
-
sudo mkdir -p $(pwd)/htdocs/documents/admin/temp;
-
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
-
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-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
after_script
:
...
...
This diff is collapsed.
Click to expand it.
composer.json.phpcs
0 → 100644
+
18
−
0
View file @
ae461815
{
"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"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment