From cfc663de44df8c0900221972e62d7c68f7832b6d Mon Sep 17 00:00:00 2001 From: jgen Date: Tue, 18 Feb 2014 12:57:32 -0500 Subject: [PATCH] Output the HTML when the install fails. --- .travis.yml | 4 ++-- tests/test_install.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1337baf7..37ef474f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,8 +29,8 @@ after_failure: - sudo cat /etc/nginx/sites-enabled/default - sudo cat /var/log/nginx/error.log - sudo cat /var/log/php5-fpm.log - - sudo cat /var/log/mysql.* - - sudo ls /var/log/nginx + - sudo cat /var/log/mysql.log + - sudo cat /var/log/mysql.err # configure notifications (email, IRC, campfire etc) #notifications: diff --git a/tests/test_install.php b/tests/test_install.php index 5f261ec0..a5379223 100644 --- a/tests/test_install.php +++ b/tests/test_install.php @@ -37,7 +37,11 @@ class ShimmieSimpleTestCase extends WebTestCase { $this->setFieldByName("database_password", $this->db_pass); $this->assertFieldByName("database_name", "shimmie"); $this->clickSubmit("Go!"); - $this->assertTitle("Welcome to Shimmie"); + + if (!$this->assertTitle("Welcome to Shimmie")) { + $this->showSource(); + } + $this->assertText("Welcome to Shimmie"); $this->assertText("This message will go away once your first image"); }