diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7c5c02d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details + +language: php + +dist: precise + +php: + - 5.3 + +env: + - DB=MYSQL CORE_RELEASE=3.0 + - DB=PGSQL CORE_RELEASE=3.0 + +before_script: + - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support + - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss + - cd ~/builds/ss + +script: + - phpunit googlesitemaps/tests/ diff --git a/README.md b/README.md index ec13ad4..234c891 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Google Sitemaps Module +[![Build Status](https://secure.travis-ci.org/wilr/silverstripe-googlesitemaps.png?branch=1.1)](http://travis-ci.org/wilr/silverstripe-googlesitemaps) + ## Maintainer Contact * Will Rossiter (Nickname: wrossiter, willr) diff --git a/tests/GoogleSitemapTest.php b/tests/GoogleSitemapTest.php index 6b0c123..46a5a25 100644 --- a/tests/GoogleSitemapTest.php +++ b/tests/GoogleSitemapTest.php @@ -95,7 +95,7 @@ class GoogleSitemapTest extends FunctionalTest { GoogleSitemap::register_dataobject("GoogleSitemapTest_DataObject"); DB::query(" - UPDATE GoogleSitemapTest_DataObject SET LastEdited = '2012-01-14'" + UPDATE \"GoogleSitemapTest_DataObject\" SET \"LastEdited\" = '2012-01-14'" ); $response = $this->get('sitemap.xml');