diff --git a/.travis.yml b/.travis.yml index 5d4a4cb3..f398e0b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ before_install: install: # Install nginx, php5-fpm and configure them - sudo ./tests/setup_test_env.sh $TRAVIS_BUILD_DIR - + # Create the database schema for shimmie. - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie;" -U postgres; fi - if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi diff --git a/ext/alias_editor/theme.php b/ext/alias_editor/theme.php index b8b2f9a7..d206a916 100644 --- a/ext/alias_editor/theme.php +++ b/ext/alias_editor/theme.php @@ -33,7 +33,7 @@ class AliasEditorTheme extends Themelet { foreach($aliases as $old => $new) { $h_old = html_escape($old); $h_new = "".html_escape($new).""; - + $h_aliases .= "
Please make sure the database you have chosen exists and is empty.
The username provided must have access to create tables within the database.
@@ -238,7 +238,7 @@ function ask_questions() { // {{{
Drivers can generally be downloaded with your OS package manager;
for Debian / Ubuntu you want php5-pgsql, php5-mysql, or php5-sqlite.
Once done, Continue
diff --git a/tests/setup_test_env.sh b/tests/setup_test_env.sh
index 9c16e819..1717cd2c 100644
--- a/tests/setup_test_env.sh
+++ b/tests/setup_test_env.sh
@@ -31,7 +31,7 @@ server {
server_tokens off;
root $1;
index index.php;
-
+
location / {
index index.php;
# For the Nice URLs in Shimmie.
@@ -40,7 +40,7 @@ server {
break;
}
}
-
+
location ~ \.php\$ {
try_files \$uri =404;
fastcgi_index index.php;
diff --git a/tests/test_all.php b/tests/test_all.php
index d45112c0..9fb49de9 100644
--- a/tests/test_all.php
+++ b/tests/test_all.php
@@ -1,7 +1,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
diff --git a/tests/test_install.php b/tests/test_install.php
index a547bd64..8519c6d5 100644
--- a/tests/test_install.php
+++ b/tests/test_install.php
@@ -1,7 +1,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
@@ -31,20 +31,20 @@ class ShimmieInstallerTest extends WebTestCase {
{
$db = constant("_TRAVIS_DATABASE");
$host = constant("_TRAVIS_WEBHOST");
-
+
// Make sure that we know where the host is.
$this->assertFalse(empty($host));
// Make sure that we know what database to use.
$this->assertFalse(empty($db));
-
+
$this->get($host);
$this->assertResponse(200);
$this->assertTitle("Shimmie Installation");
$this->assertText("Database Install");
-
+
$this->setField("database_type", $db);
$this->assertField("database_host", "localhost");
-
+
if ($db === "mysql") {
$this->setField("database_user", "root");
$this->setField("database_password", "");
@@ -54,10 +54,10 @@ class ShimmieInstallerTest extends WebTestCase {
} else {
die("Unsupported Database Option");
}
-
+
$this->assertField("database_name", "shimmie");
$this->clickSubmit("Go!");
-
+
if (!$this->assertText("Installation Succeeded!")) {
$this->showSource();
}