- 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
+ - ant prepare
+ - phpunit --coverage-text
<arg value="install"/>
<arg value="--no-interaction"/>
<arg value="--no-progress"/>
- <arg value="--working-dir=.."/>
</exec>
<exec executable="php">
- <arg value="${basedir}/../app/console"/>
+ <arg value="${basedir}/app/console"/>
<arg value="doctrine:database:drop"/>
<arg value="--force"/>
<arg value="--env=test"/>
</exec>
<exec executable="php">
- <arg value="${basedir}/../app/console"/>
+ <arg value="${basedir}/app/console"/>
<arg value="doctrine:database:create"/>
<arg value="--env=test"/>
</exec>
<exec executable="php">
- <arg value="${basedir}/../app/console"/>
+ <arg value="${basedir}/app/console"/>
<arg value="doctrine:schema:create"/>
<arg value="--env=test"/>
</exec>
<exec executable="php">
- <arg value="${basedir}/../app/console"/>
+ <arg value="${basedir}/app/console"/>
<arg value="cache:clear"/>
<arg value="--env=test"/>
</exec>
<exec executable="php">
- <arg value="${basedir}/../app/console"/>
+ <arg value="${basedir}/app/console"/>
<arg value="doctrine:fixtures:load"/>
<arg value="--no-interaction"/>
<arg value="--env=test"/>
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="bootstrap.php.cache"
+ bootstrap="app/bootstrap.php.cache"
>
<testsuites>
<testsuite name="wallabag Test Suite">
- <directory>../src/Wallabag/CoreBundle/Tests</directory>
+ <directory>./src/Wallabag/*Bundle/Tests</directory>
</testsuite>
</testsuites>
+ <php>
+ <server name="KERNEL_DIR" value="./app/" />
+ </php>
+
<filter>
<whitelist>
- <directory>../src</directory>
+ <directory>./src</directory>
<exclude>
- <directory>../vendor</directory>
- <directory>../src/Wallabag/CoreBundle/Resources</directory>
- <directory>../src/Wallabag/CoreBundle/Tests</directory>
- <directory>../src/Wallabag/CoreBundle/DataFixtures</directory>
+ <directory>./vendor</directory>
+ <directory>./src/Wallabag/*Bundle/Resources</directory>
+ <directory>./src/Wallabag/*Bundle/Tests</directory>
+ <directory>./src/Wallabag/*Bundle/DataFixtures</directory>
</exclude>
</whitelist>
</filter>