Setup phpci

This commit is contained in:
Timothy Warren 2014-07-11 11:31:29 -04:00
parent 2ccac504da
commit 884aa10a3b
3 changed files with 50 additions and 41 deletions

19
phpci.yml Normal file
View File

@ -0,0 +1,19 @@
build_settings:
verbose: true
ignore:
- "tests"
setup:
env:
PHPCI: true
test:
php_unit:
run_from: 'tests'
coverage: '../coverage/'
php_docblock_checker:
allowed_warnings: 0
skip_classes: true
php_loc:
complete:

View File

@ -121,14 +121,4 @@ if (extension_loaded('pdo_sqlite'))
Query($params); Query($params);
} }
// If Firebird (interbase) extension does not exist,
// create a fake class to suppress errors from skipped tests
if ( ! function_exists('fbird_connect'))
{
class Firebird {
public $sql;
public $util;
}
}
// End of bootstrap.php // End of bootstrap.php

View File

@ -1,36 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit
colors="true" colors="true"
stopOnFailure="false" stopOnFailure="false"
bootstrap="bootstrap.php"> bootstrap="bootstrap.php">
<filter> <filter>
<blacklist> <blacklist>
<directory suffix=".php">../coverage</directory> <directory suffix=".php">../coverage</directory>
<directory suffix=".php">../docs</directory> <directory suffix=".php">../docs</directory>
<directory suffix=".php">.</directory> <directory suffix=".php">.</directory>
</blacklist> </blacklist>
</filter> </filter>
<testsuites> <testsuites>
<testsuite name="CoreTests"> <testsuite name="CoreTests">
<file>core/core.php</file> <file>core/core.php</file>
<file>core/db_qp_test.php</file> <file>core/db_qp_test.php</file>
</testsuite> </testsuite>
<testsuite name="FirebirdTests"> <testsuite name="FirebirdTests">
<file>databases/firebird/FirebirdTest.php</file> <file>databases/firebird/FirebirdTest.php</file>
<file>databases/firebird/FirebirdQBTest.php</file> <file>databases/firebird/FirebirdQBTest.php</file>
</testsuite> </testsuite>
<testsuite name="MySQLTests"> <testsuite name="MySQLTests">
<file>databases/mysql/MySQLTest.php</file> <file>databases/mysql/MySQLTest.php</file>
<file>databases/mysql/MySQLQBTest.php</file> <file>databases/mysql/MySQLQBTest.php</file>
</testsuite> </testsuite>
<testsuite name="PgSQLTests"> <testsuite name="PgSQLTests">
<file>databases/pgsql/PgSQLTest.php</file> <file>databases/pgsql/PgSQLTest.php</file>
<file>databases/pgsql/PgSQLQBTest.php</file> <file>databases/pgsql/PgSQLQBTest.php</file>
</testsuite> </testsuite>
<testsuite name="SQLiteTests"> <testsuite name="SQLiteTests">
<file>databases/sqlite/SQLiteTest.php</file> <file>databases/sqlite/SQLiteTest.php</file>
<file>databases/sqlite/SQLiteQBTest.php</file> <file>databases/sqlite/SQLiteQBTest.php</file>
</testsuite> </testsuite>
</testsuites> </testsuites>
</phpunit> </phpunit>