diff --git a/build/docker_install.sh b/build/docker_install.sh index 4cf2b29..4425001 100644 --- a/build/docker_install.sh +++ b/build/docker_install.sh @@ -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 diff --git a/tests/databases/mysql/MySQLQBTest.php b/tests/databases/mysql/MySQLQBTest.php index 85e384e..6bd45f8 100644 --- a/tests/databases/mysql/MySQLQBTest.php +++ b/tests/databases/mysql/MySQLQBTest.php @@ -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', diff --git a/tests/databases/mysql/MySQLTest.php b/tests/databases/mysql/MySQLTest.php index a2a008d..4e9cd93 100644 --- a/tests/databases/mysql/MySQLTest.php +++ b/tests/databases/mysql/MySQLTest.php @@ -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'); } diff --git a/tests/databases/pgsql/PgSQLQBTest.php b/tests/databases/pgsql/PgSQLQBTest.php index f714d06..b9ad3e8 100644 --- a/tests/databases/pgsql/PgSQLQBTest.php +++ b/tests/databases/pgsql/PgSQLQBTest.php @@ -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', diff --git a/tests/databases/pgsql/PgSQLTest.php b/tests/databases/pgsql/PgSQLTest.php index 3893e0a..6fd1a2b 100644 --- a/tests/databases/pgsql/PgSQLTest.php +++ b/tests/databases/pgsql/PgSQLTest.php @@ -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'); }