Merge pull request #52 from JoshuaEstes/master

Updated coveralls and added some things like phpunit and configurations
This commit is contained in:
Joshua Estes 2014-07-02 13:59:59 -04:00
commit f55b995f6e
4 changed files with 37 additions and 4 deletions

View File

@ -1,2 +1,2 @@
service-name: travis-ci
repo_token: uOWOeDamMgBgofr53RsXgvU6jhPVwv41P
src_dir: .

View File

@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="bitpay/magento-plugin" default="lint">
<target name="lint">
<target name="clean" hidden="true">
<delete dir="build/logs" verbose="true" />
</target>
<target name="prepare" depends="clean" hidden="true">
<mkdir dir="build/logs" />
</target>
<target name="lint" depends="prepare">
<phplint>
<fileset dir="app/code/community/Bitpay/Bitcoins">
<include name="**/*.php"/>

View File

@ -15,7 +15,9 @@
"composer/installers": "~1.0"
},
"require-dev": {
"phing/phing": "*"
"phing/phing": "*",
"phpunit/phpunit": "*",
"satooshi/php-coveralls": "*"
},
"config": {
"bin-dir": "bin"
@ -26,6 +28,6 @@
}
},
"archive": {
"exclude": ["build.xml"]
"exclude": ["build.xml","build/","phpunit.xml.dist","tests/"]
}
}

23
phpunit.xml.dist Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<phpunit
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "false"
>
<testsuites>
<testsuite name="bitpay/magento-plugin Test Suite">
<directory>tests/*Test.php</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="build/logs/coverage.xml"/>
</logging>
</phpunit>