aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/build.xml22
-rw-r--r--app/phpunit.xml.dist31
2 files changed, 53 insertions, 0 deletions
diff --git a/app/build.xml b/app/build.xml
new file mode 100644
index 00000000..16ef73ed
--- /dev/null
+++ b/app/build.xml
@@ -0,0 +1,22 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="wallabag" default="build">
3 <target name="build" depends="prepare"/>
4
5 <target name="clean" description="Cleanup build artifacts">
6 <delete dir="${basedir}/app/cache"/>
7 </target>
8
9 <target name="prepare" depends="clean" description="Prepare for build">
10 <exec executable="composer">
11 <arg value="install"/>
12 <arg value="--dev"/>
13 <arg value="--no-interaction"/>
14 <arg value="--working-dir=.."/>
15 </exec>
16 <exec executable="php">
17 <arg value="${basedir}/../app/console"/>
18 <arg value="cache:clear"/>
19 <arg value="--env=test"/>
20 </exec>
21 </target>
22</project>
diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist
new file mode 100644
index 00000000..6593a2f0
--- /dev/null
+++ b/app/phpunit.xml.dist
@@ -0,0 +1,31 @@
1<?xml version="1.0" encoding="UTF-8"?>
2
3<phpunit backupGlobals="false"
4 backupStaticAttributes="false"
5 colors="true"
6 convertErrorsToExceptions="true"
7 convertNoticesToExceptions="true"
8 convertWarningsToExceptions="true"
9 processIsolation="false"
10 stopOnFailure="false"
11 syntaxCheck="false"
12 bootstrap="bootstrap.php.cache"
13 >
14
15 <testsuites>
16 <testsuite name="wallabag Test Suite">
17 <directory>../src/Wallabag/CoreBundle/Tests</directory>
18 </testsuite>
19 </testsuites>
20
21 <filter>
22 <whitelist>
23 <directory>../src</directory>
24 <exclude>
25 <directory>../vendor</directory>
26 <directory>../src/Acme</directory>
27 <directory>../src/AppBundle</directory>
28 </exclude>
29 </whitelist>
30 </filter>
31</phpunit>