Skip to content

Commit

Permalink
Unify build names
Browse files Browse the repository at this point in the history
  • Loading branch information
jfilla committed Oct 11, 2019
1 parent 8468dbe commit fee72f2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<target name="init" description="Initialize project" depends="composer"/>
<target name="fix" description="Run lints and tests. Run before every pull request"
depends="rm-cache, lint, cs, phpstan, test"/>
<target name="ci" depends="lint, phpcs, phpstan, test:report-coverage"/>
<target name="ci" depends="lint, phpcs, phpstan, test:coverage:report"/>
<target name="cs" description="Check code style and fix it if possible" depends="phpcbf, phpcs"/>

<target name="rm-cache" description="Clear cache">
Expand Down Expand Up @@ -99,7 +99,7 @@
</exec>
</target>

<target name="test:report-coverage" description="Report coverage to Coveralls" depends="test:coverage-clover">
<target name="test:coverage:report" description="Report coverage to Coveralls" depends="test:coverage:clover">
<exec
executable="${bin}/php-coveralls"
logoutput="true"
Expand All @@ -111,7 +111,7 @@
</exec>
</target>

<target name="test:coverage-clover" description="Run tests and generate coverage as xml">
<target name="test:coverage:clover" description="Run tests and generate coverage as xml">
<exec
executable="${bin}/phpunit"
logoutput="true"
Expand All @@ -122,8 +122,7 @@
</exec>
</target>


<target name="test:coverage-html" description="Run tests and generate coverage as html">
<target name="test:coverage" description="Run tests and generate coverage as html">
<exec
executable="${bin}/phpunit"
logoutput="true"
Expand All @@ -133,4 +132,11 @@
<arg value="--coverage-html=${coverage}"/>
</exec>
</target>

<target name="test:coverage:open" description="Open coverage in chrome." depends="test:coverage">
<exec executable="chrome">
<arg value="${coverage}/index.html"/>
</exec>
</target>

</project>

0 comments on commit fee72f2

Please sign in to comment.