Skip to content

Commit 227d41d

Browse files
committed
Merge pull request #323 from cakephp/travis-sqlite
add sqlite to travis matrix
2 parents 99e2261 + dd0166f commit 227d41d

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sudo: false
1010
env:
1111
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
1212
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
13+
- DB=sqlite
1314

1415
matrix:
1516
fast_finish: true

tests/TestCase/Model/Behavior/TimedBehaviorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public function tearDown()
5151
{
5252
parent::tearDown();
5353
unset($this->Article);
54-
TableRegistry::clear();
5554
DebugTimer::clear();
5655
}
5756

tests/TestCase/Model/Table/RequestTableTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
namespace DebugKit\Test\TestCase\Model\Table;
1515

16+
use Cake\Database\Driver\Sqlite;
1617
use Cake\Datasource\ConnectionManager;
1718
use Cake\ORM\TableRegistry;
1819
use Cake\TestSuite\TestCase;
@@ -31,7 +32,10 @@ class RequestTableTest extends TestCase
3132
public function testInitializeCreatesSchema()
3233
{
3334
$connection = ConnectionManager::get('test');
35+
$this->skipIf($connection->driver() instanceof Sqlite, 'Schema insertion/removal breaks SQLite');
3436

37+
TableRegistry::clear();
38+
3539
$stmt = $connection->execute('DROP TABLE IF EXISTS panels');
3640
$stmt->closeCursor();
3741

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
// Ensure default test connection is defined
9090
if (!getenv('db_dsn')) {
91-
putenv('db_dsn=sqlite:///' . TMP . 'debug_kit_test.sqlite');
91+
putenv('db_dsn=sqlite:/' . TMP . 'debug_kit_test.sqlite');
9292
}
9393

9494
$config = [

0 commit comments

Comments
 (0)