Skip to content

Commit

Permalink
Add more CI checkers: LOC and CPD
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Apr 25, 2014
1 parent 647e956 commit b9306da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
service_name: travis-ci

src_dir: lib

Expand Down
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,18 @@ php:
- 5.3

script: phpunit --bootstrap tests/bootstrap.php --configuration tests/phpunit.xml
php vendor/bin/phpcpd --exclude vendor .
echo "---------------------------------------------------"
echo "----------------GLOBAL LOC-------------------------"
echo "---------------------------------------------------"
php vendor/bin/phploc . --exclude vendor
echo "---------------------------------------------------"
echo "----------------LIB LOC----------------------------"
echo "---------------------------------------------------"
php vendor/bin/phploc lib/. --exclude vendor

after_script: php vendor/bin/coveralls --config .coveralls.yml -v
after_script:
export TRAVIS=https://travis-ci.org/onelogin/php-saml
echo $TRAVIS
echo $TRAVIS_JOB_ID
php vendor/bin/coveralls --config .coveralls.yml -v
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"php": ">=5.3.2"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master"

"satooshi/php-coveralls": "dev-master",
"sebastian/phpcpd": "*",
"phploc/phploc": "*"
},
"suggest": {
"lib-openssl": "Install openssl lib in order to handle with x509 certs (require to support sign and encryption)",
Expand Down

0 comments on commit b9306da

Please sign in to comment.