diff --git a/.travis.yml b/.travis.yml
index 2971c5b9e..1d90a7489 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,18 @@
language: php
+
php:
+ - 5.4
- 5.5
+ - 5.6
+
branches:
only:
- - refactor
\ No newline at end of file
+ - refactor
+
+before_script:
+ - composer self-update
+ - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+
+script:
+ - ant -f app/build.xml prepare
+ - phpunit -c app --coverage-text
diff --git a/app/build.xml b/app/build.xml
new file mode 100644
index 000000000..16ef73ed4
--- /dev/null
+++ b/app/build.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist
new file mode 100644
index 000000000..6593a2f06
--- /dev/null
+++ b/app/phpunit.xml.dist
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+ ../src/Wallabag/CoreBundle/Tests
+
+
+
+
+
+ ../src
+
+ ../vendor
+ ../src/Acme
+ ../src/AppBundle
+
+
+
+
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
deleted file mode 100644
index a26ead3ad..000000000
--- a/phpunit.xml.dist
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
- src/Wallabag/*Bundle/Tests
-
-
-
-
-
- src
-
- src/*Bundle/Resources
- src/*Bundle/Tests
- src/*/*Bundle/Resources
- src/*/*Bundle/Tests
- src/*/Bundle/*Bundle/Resources
- src/*/Bundle/*Bundle/Tests
-
-
-
-
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
index af20f31f1..786ff8117 100644
--- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
@@ -10,9 +10,8 @@ class EntryControllerTest extends WebTestCase
{
$client = static::createClient();
- $crawler = $client->request('GET', '/app/index');
+ $crawler = $client->request('GET', '/new');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
- $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0);
}
}