-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.xml
103 lines (92 loc) · 3.69 KB
/
build.xml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Magento
~
~ NOTICE OF LICENSE
~
~ This source file is subject to the Open Software License (OSL 3.0)
~ that is bundled with this package in the file LICENSE.txt.
~ It is also available through the world-wide-web at this URL:
~ http://opensource.org/licenses/osl-3.0.php
~ If you did not receive a copy of the license and are unable to
~ obtain it through the world-wide-web, please send an email
~ to license@magentocommerce.com so we can send you a copy immediately.
~
~ DISCLAIMER
~
~ Do not edit or add to this file if you wish to upgrade Magento to newer
~ versions in the future. If you wish to customize Magento for your
~ needs please refer to http://www.magentocommerce.com for more information.
~
~ @author Nosto Solutions Ltd <magento@nosto.com>
~ @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
~ @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-->
<!--suppress XmlUnboundNsPrefix, PhingDomInspection -->
<project name="nostotagging" default="dist">
<property name="package" value="${phing.project.name}" override="true"/>
<property name="buildsrc" value="${project.basedir}/build/src" override="false"/>
<property name="buildbin" value="${project.basedir}/build/bin" override="false"/>
<property name="buildroot" value="${project.basedir}/build" override="true"/>
<property name="builddest" value="${project.basedir}/build/package" override="true"/>
<property name="srcdir" value="${project.basedir}" override="true"/>
<!--suppress PhingDomInspection -->
<property name="packagename" value="nosto-tagging-${version}.zip" override="true"/>
<target name="phpmd">
<exec executable="./vendor/bin/phpmd" passthru="true">
<arg value="."/>
<arg value="--exclude"/>
<arg value="vendor,var,build"/>
<arg value="text"/>
<arg value="codesize,"/>
<arg value="naming,"/>
<arg value="unusedcode,"/>
<arg value="controversial,"/>
<arg value="design"/>
</exec>
</target>
<target name="phpcpd">
<exec executable="./vendor/bin/phpcpd" passthru="true">
<arg value="--min-lines=1"/>
<arg value="."/>
<arg value="--exclude"/>
<arg value="vendor,var,build"/>
</exec>
</target>
<target name="phpcbf">
<exec executable="./vendor/bin/phpcbf" passthru="true">
<arg value="--colors"/>
<arg value="--report-width=auto"/>
<arg value="--standard=ruleset.xml"/>
</exec>
</target>
<target name="phpcs">
<exec executable="./vendor/bin/phpcs" passthru="true">
<arg value="--colors"/>
<arg value="--report-width=auto"/>
<arg value="--standard=ruleset.xml"/>
</exec>
</target>
<target name="phan">
<exec executable="./vendor/bin/phan" passthru="true">
<arg value="--progress-bar"/>
<arg value="--signature-compatibility"/>
<arg value="--config-file=phan.php"/>
<arg value="--dead-code-detection"/>
</exec>
</target>
<target name="build">
<echo msg="Building a package"/>
<exec executable="composer">
<arg value="archive"/>
<arg value="--format=zip"/>
<arg value="--file=${version}"/>
</exec>
</target>
<target name="validate" depends="phpcs, phan, phpmd, phpcpd">
<echo msg="Validating packages"/>
</target>
<target name="dist" depends="validate, build">
<echo msg="All done"/>
</target>
</project>