Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves issue #70 #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
language: php
php:
- "7.0"
- "5.6"
- "5.5"
- "5.4"
language: php

dist: trusty

services: mysql

matrix:
include:
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4

sudo: false

install:
- composer install

before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'

script:
- vendor/bin/phpunit
17 changes: 17 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@
"ext-pdo": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.0"
},
"suggest": {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, we just support MySQL, PgSQL, Oracle and SQLite. Maybe we can check the other database drivers later, but now, you can remove other drivers except drivers that i mentioned.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Leave other DB drivers, and keep MySQL, PgSQL, Oracle and SQLite existed on suggest block.

"ext-pdo_cubrid": "Supports for CUBRID",
"ext-pdo_dblib": "Supports for Microsoft SQL Server and Sybase",
"ext-pdo_firebird": "Supports for Firebird",
"ext-pdo_ibm": "Supports for IBM",
"ext-pdo_informix": "Supports for Informix",
"ext-pdo_mysql": "Supports for MySQL",
"ext-pdo_sqlsrv": "Supports for Microsoft SQL Server",
"ext-pdo_ocl": "Supports for Oracle",
"ext-pdo_odbc": "Supports for ODBC and DB2 ",
"ext-pdo_pgsql": "Supports for PostgreSQL",
"ext-pdo_sqlite": "Supports for SQLite",
"ext-pdo_4d": "Supports for 4D"
},
"autoload": {
"psr-4": {
"Buki\\": "src"
Expand Down
26 changes: 26 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">

<testsuites>
<testsuite name="pdox Tests">
<directory>tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>

</phpunit>