Simplify build system

This commit is contained in:
Jeremy 2015-03-03 19:20:08 +01:00
parent ba7b9d48d4
commit 8378485e33
4 changed files with 21 additions and 18 deletions

6
.gitignore vendored
View file

@ -26,9 +26,9 @@
/web/bundles/ /web/bundles/
/web/uploads/ /web/uploads/
# PHPUnit # Build
/app/phpunit.xml /app/build
/phpunit.xml /build
# Composer PHAR # Composer PHAR
/composer.phar /composer.phar

View file

@ -14,5 +14,5 @@ before_script:
- echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script: script:
- ant -f app/build.xml prepare - ant prepare
- phpunit -c app --coverage-text - phpunit --coverage-text

View file

@ -11,31 +11,30 @@
<arg value="install"/> <arg value="install"/>
<arg value="--no-interaction"/> <arg value="--no-interaction"/>
<arg value="--no-progress"/> <arg value="--no-progress"/>
<arg value="--working-dir=.."/>
</exec> </exec>
<exec executable="php"> <exec executable="php">
<arg value="${basedir}/../app/console"/> <arg value="${basedir}/app/console"/>
<arg value="doctrine:database:drop"/> <arg value="doctrine:database:drop"/>
<arg value="--force"/> <arg value="--force"/>
<arg value="--env=test"/> <arg value="--env=test"/>
</exec> </exec>
<exec executable="php"> <exec executable="php">
<arg value="${basedir}/../app/console"/> <arg value="${basedir}/app/console"/>
<arg value="doctrine:database:create"/> <arg value="doctrine:database:create"/>
<arg value="--env=test"/> <arg value="--env=test"/>
</exec> </exec>
<exec executable="php"> <exec executable="php">
<arg value="${basedir}/../app/console"/> <arg value="${basedir}/app/console"/>
<arg value="doctrine:schema:create"/> <arg value="doctrine:schema:create"/>
<arg value="--env=test"/> <arg value="--env=test"/>
</exec> </exec>
<exec executable="php"> <exec executable="php">
<arg value="${basedir}/../app/console"/> <arg value="${basedir}/app/console"/>
<arg value="cache:clear"/> <arg value="cache:clear"/>
<arg value="--env=test"/> <arg value="--env=test"/>
</exec> </exec>
<exec executable="php"> <exec executable="php">
<arg value="${basedir}/../app/console"/> <arg value="${basedir}/app/console"/>
<arg value="doctrine:fixtures:load"/> <arg value="doctrine:fixtures:load"/>
<arg value="--no-interaction"/> <arg value="--no-interaction"/>
<arg value="--env=test"/> <arg value="--env=test"/>

View file

@ -9,23 +9,27 @@
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false"
syntaxCheck="false" syntaxCheck="false"
bootstrap="bootstrap.php.cache" bootstrap="app/bootstrap.php.cache"
> >
<testsuites> <testsuites>
<testsuite name="wallabag Test Suite"> <testsuite name="wallabag Test Suite">
<directory>../src/Wallabag/CoreBundle/Tests</directory> <directory>./src/Wallabag/*Bundle/Tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<php>
<server name="KERNEL_DIR" value="./app/" />
</php>
<filter> <filter>
<whitelist> <whitelist>
<directory>../src</directory> <directory>./src</directory>
<exclude> <exclude>
<directory>../vendor</directory> <directory>./vendor</directory>
<directory>../src/Wallabag/CoreBundle/Resources</directory> <directory>./src/Wallabag/*Bundle/Resources</directory>
<directory>../src/Wallabag/CoreBundle/Tests</directory> <directory>./src/Wallabag/*Bundle/Tests</directory>
<directory>../src/Wallabag/CoreBundle/DataFixtures</directory> <directory>./src/Wallabag/*Bundle/DataFixtures</directory>
</exclude> </exclude>
</whitelist> </whitelist>
</filter> </filter>