]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Simplify build system 1144/head
authorJeremy <jeremy.benoist@gmail.com>
Tue, 3 Mar 2015 18:20:08 +0000 (19:20 +0100)
committerJeremy <jeremy.benoist@gmail.com>
Tue, 3 Mar 2015 18:20:08 +0000 (19:20 +0100)
.gitignore
.travis.yml
build.xml [moved from app/build.xml with 80% similarity]
phpunit.xml.dist [moved from app/phpunit.xml.dist with 56% similarity]

index 72e5ffadab53b7f67886f40eca3670cdfdb86f37..9bde27dbcd771209c81325f55632c3696286d70e 100644 (file)
@@ -26,9 +26,9 @@
 /web/bundles/
 /web/uploads/
 
-# PHPUnit
-/app/phpunit.xml
-/phpunit.xml
+# Build
+/app/build
+/build
 
 # Composer PHAR
 /composer.phar
index e99c1e6f26706acf14f56c61c71b10dac09e502a..ff23ad457c907c521c690d0af24b94d1c4ca8651 100644 (file)
@@ -14,5 +14,5 @@ before_script:
   - 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
similarity index 80%
rename from app/build.xml
rename to build.xml
index bdc4b4d86757cefdbade38911a5e7afda6078f87..cd2dfa3c86c33effd25281fa67ea3e6aa0804c0f 100644 (file)
+++ b/build.xml
             <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"/>
similarity index 56%
rename from app/phpunit.xml.dist
rename to phpunit.xml.dist
index b8f38ff89151186ded8c84f3fac0bb43d9fca49e..6f6269a4cfe3659a17f42245c4a2b6e03506de8e 100644 (file)
@@ -9,23 +9,27 @@
          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>