Skip to content

Commit

Permalink
travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
genemu committed Nov 21, 2011
1 parent 486499a commit 6faf449
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
language: php
php:
- 5.3
#- 5.4
- 5.4
env:
- SYMFONY_VERSION=v2.0.5
- SYMFONY_VERSION=origin/master
before_script:
- sh -c "sudo apt-get install -y php5-intl php5-gd"
- sh -c "psql -c 'create database test;' -U postgres;"
- sh -c "sudo /etc/init.d/apache2 force-reload"
- php vendor/vendors.php
script: rake test
9 changes: 9 additions & 0 deletions Tests/Form/Type/CaptchaTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
*/
class CaptchaTypeTest extends TypeTestCase
{
public function setUp()
{
parent::setUp();

if (!function_exists('gd_info')) {
$this->markTestSkipped('Gd not installed');
}
}

public function testDefaultConfigs()
{
$form = $this->factory->create('genemu_captcha');
Expand Down
9 changes: 9 additions & 0 deletions Tests/Form/Type/JQueryFileTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ class JQueryFileTypeTest extends TypeTestCase
const FILE_CLASS = 'Symfony\Component\HttpFoundation\File\File';
const IMAGE_CLASS = 'Genemu\Bundle\FormBundle\Gd\File\Image';

public function setUp()
{
parent::setUp();

if (!function_exists('gd_info')) {
$this->markTestSkipped('Gd not installed');
}
}

public function testDefaultConfigs()
{
$form = $this->factory->create('genemu_jqueryfile');
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
<testsuites>
<testsuite name="GenemuFormBundle test suite">
<directory>./Tests</directory>
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>

Expand Down

0 comments on commit 6faf449

Please sign in to comment.