Skip to content

Commit

Permalink
Test PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Dec 18, 2018
1 parent 956698e commit f26da67
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tools:
external_code_coverage: true
external_code_coverage:
runs: 2
timeout: 600
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist: xenial

services:
- mysql
- postgresql

env:
global:
Expand All @@ -23,6 +24,8 @@ matrix:
env: COVERAGE=yes
- php: 7.2
env: RELEASE=lowest
- php: 7.2
env: COVERAGE=yes DB=pgsql
- php: 7.3
- php: 7.3
env: RELEASE=lowest
Expand All @@ -46,6 +49,7 @@ install:
before_script:
- cp tests/config/database.travis.php tests/config/database.php
- mysql -e 'create database `test`;'
- psql -c 'create database "test";' -U postgres

script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
Expand Down
12 changes: 12 additions & 0 deletions tests/config/database.travis.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
'strict' => true,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => '127.0.0.1',
'port' => '5432',
'database' => 'test',
'username' => 'postgres',
'password' => '',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlite' => [
'driver' => 'sqlite',
'database' => ':memory:'
Expand Down

0 comments on commit f26da67

Please sign in to comment.