Skip to content
Browse files

travis-ci

  • Loading branch information...
1 parent 486499a commit 6faf4492bb1d295931d12ec957591ff87a8a6333 @genemu committed
Showing with 21 additions and 4 deletions.
  1. +2 −3 .travis.yml
  2. +9 −0 Tests/Form/Type/CaptchaTypeTest.php
  3. +9 −0 Tests/Form/Type/JQueryFileTypeTest.php
  4. +1 −1 phpunit.xml.dist
View
5 .travis.yml
@@ -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
View
9 Tests/Form/Type/CaptchaTypeTest.php
@@ -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');
View
9 Tests/Form/Type/JQueryFileTypeTest.php
@@ -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');
View
2 phpunit.xml.dist
@@ -13,7 +13,7 @@
>
<testsuites>
<testsuite name="GenemuFormBundle test suite">
- <directory>./Tests</directory>
+ <directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>

0 comments on commit 6faf449

Please sign in to comment.
Something went wrong with that request. Please try again.