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 index 0be14ca95..6593a2f06 100644 --- a/app/phpunit.xml.dist +++ b/app/phpunit.xml.dist @@ -1,12 +1,17 @@ - - + > + ../src/Wallabag/CoreBundle/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); } }