-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
47 lines (39 loc) · 1.43 KB
/
build.xml
File metadata and controls
47 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<project name="ArmaByte" basedir="." default="test">
<property name="builddir" value="build" />
<property name="source" value="app" />
<property name="testdir" value="tests" />
<fileset id="php-files" dir="${project.basedir}">
<include name="app/**/*.php"/>
<!--<exclude name="tests/**"/>-->
</fileset>
<target name="test">
<phpunit codecoverage="true">
<batchtest>
<fileset dir="src">
<include name="*Test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<target name="test-config">
<echo msg="Copying testConfig" />
<move file=".env.test" tofile=".env" overwrite="true"/>
</target>
<target name="bundle">
<echo msg="Optimizing Bundle" />
<exec command="gulp" passthru="true" />
<exec command="php artisan clear-compiled" passthru="true" />
<exec command="php artisan route:cache" passthru="true" />
<exec command="php artisan passport:install" passthru="true" />
<zip destfile="armabyte.zip">
<fileset dir=".">
<include name="**/**" />
<exclude name=".git/**" />
<exclude name="node_modules/**" />
<exclude name=".env" />
</fileset>
</zip>
<echo msg="Done! All ready" />
</target>
</project>