diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f09aa97..70996d4 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,2 +1,4 @@ tools: - external_code_coverage: true \ No newline at end of file + external_code_coverage: + runs: 2 + timeout: 600 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 6328a46..cd81c6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ dist: xenial services: - mysql + - postgresql env: global: @@ -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 @@ -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 diff --git a/tests/config/database.travis.php b/tests/config/database.travis.php index 0fb202f..b1b8c23 100644 --- a/tests/config/database.travis.php +++ b/tests/config/database.travis.php @@ -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:'