Install missing apt package for docker, fix an issue running on jenkins
This commit is contained in:
parent
d5f7e4274d
commit
bcfb0f2be8
@ -6,7 +6,9 @@
|
||||
set -xe
|
||||
|
||||
# Install git (the php image doesn't have it) which is required by composer
|
||||
# And for some reason apt-utils is not installed
|
||||
apt-get update -yqq
|
||||
apt-get install apt-utils
|
||||
apt-get install git sqlite -yqq
|
||||
|
||||
# Install phpunit, the tool that we will use for testing
|
||||
|
@ -21,7 +21,7 @@ class MySQLQBTest extends QBTest {
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
$params = get_json_config();
|
||||
if (($var = getenv('CI'))) // Travis CI Connection Info
|
||||
if (($var = getenv('TRAVIS'))) // Travis CI Connection Info
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
|
@ -24,7 +24,7 @@ class MySQLTest extends DBTest {
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
$params = get_json_config();
|
||||
if (($var = getenv('CI')))
|
||||
if (($var = getenv('TRAVIS')))
|
||||
{
|
||||
self::$db = new \Query\Drivers\Mysql\Driver('host=127.0.0.1;port=3306;dbname=test', 'root');
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class PgSQLQBTest extends QBTest {
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
$params = get_json_config();
|
||||
if (getenv('CI')) // Travis CI Connection Info
|
||||
if (getenv('TRAVIS')) // Travis CI Connection Info
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
|
@ -36,7 +36,7 @@ class PgTest extends DBTest {
|
||||
$class = "Query\\Drivers\\Pgsql\\Driver";
|
||||
|
||||
$params = get_json_config();
|
||||
if (($var = getenv('CI')))
|
||||
if (($var = getenv('TRAVIS')))
|
||||
{
|
||||
self::$db = new $class('host=127.0.0.1;port=5432;dbname=test', 'postgres');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user