Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding more targets from list. #459

Merged
merged 1 commit into from
Sep 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phing/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<exec dir="${blt.root}" command="${repo.root}/vendor/bin/phing -f ${phing.dir}/build.xml -q -l" passthru="true"/>
</target>

<target name="target-hook:invoke" description="Executes a command defined in the target-hooks array.">
<target name="target-hook:invoke" description="Executes a command defined in the target-hooks array." hidden="true">
<fail unless="hook-name"/>
<if>
<isset property="target-hooks.${hook-name}.command"/>
Expand Down
8 changes: 4 additions & 4 deletions phing/tasks/ci.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<target name="ci:build:test"
description="Builds, tests, and deploys an artifact; uses ci drush alias."
depends="ci:setup, tests:all">
depends="ci:setup, tests:all" hidden="true">
</target>

<target name="ci:build:validate:test"
description="Builds, validates, tests, and deploys an artifact; uses ci drush alias."
depends="validate:all, ci:setup, tests:all">
depends="validate:all, ci:setup, tests:all" hidden="true">
</target>

<target name="ci:setup" description="Install dependencies, builds docroot, installs Drupal; uses ci drush alias.">
<target name="ci:setup" description="Install dependencies, builds docroot, installs Drupal; uses ci drush alias." hidden="true">
<phingcall target="setup">
<property name="drush.alias" value="${drush.aliases.ci}"/>
<property name="create_alias" value="n"/>
Expand All @@ -34,7 +34,7 @@
</copy>
</target>

<target name="ci:update" description="Update current database to reflect the state of the Drupal file system; uses ci drush alias.">
<target name="ci:update" description="Update current database to reflect the state of the Drupal file system; uses ci drush alias." hidden="true">
<phingcall target="setup:update">
<property name="drush.alias" value="${drush.aliases.ci}"/>
</phingcall>
Expand Down
4 changes: 2 additions & 2 deletions phing/tasks/frontend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
depends="frontend:setup, frontend:build">
</target>

<target name="frontend:setup" description="Uses project.yml hooks to run custom defined commands to setup front end dependencies for frontend:build.">
<target name="frontend:setup" description="Uses project.yml hooks to run custom defined commands to setup front end dependencies for frontend:build." hidden="true">
<phingcall target="target-hook:invoke">
<property name="hook-name" value="frontend-setup"/>
</phingcall>
</target>

<target name="frontend:build" description="Uses project.yml hooks to run custom defined commands to build front end dependencies for custom themes.">
<target name="frontend:build" description="Uses project.yml hooks to run custom defined commands to build front end dependencies for custom themes." hidden="true">
<phingcall target="target-hook:invoke">
<property name="hook-name" value="frontend-build"/>
</phingcall>
Expand Down
27 changes: 9 additions & 18 deletions phing/tasks/tests.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<project name="tests" default="tests:all">

<target name="test" description="Runs all tests." depends="tests:all"></target>
<target name="tests" depends="tests:all" description="Runs all tests, including Behat, PHPUnit, and Security Update check."/>

<target name="tests:all" description="Runs all tests, including Behat, PHPUnit, and Security Update check."
depends="tests:security-updates, tests:phpunit, tests:behat"/>
<target name="test" depends="tests" hidden="true"/>

<target name="tests:all" depends="tests:security-updates, tests:phpunit, tests:behat" hidden="true"/>

<!-- If you experience 'Maximum function nesting level' errors in your PHP
error log, set 'xdebug.max_nesting_level=1000' in php.ini. -->
Expand All @@ -13,7 +14,7 @@
<phingcall target="tests:phantomjs:kill"/>
</target>

<target name="tests:behat:execute" description="Executes behat tests against specific path.">
<target name="tests:behat:execute" description="Executes behat tests against specific path." hidden="true">
<!-- Check to see if any behat tests exist in this directory. If not,
behat will throw fatal error. -->
<exec command="find ${behat.path} -name *.feature -print -quit" logoutput="true" outputProperty="behat.tests.found"/>
Expand Down Expand Up @@ -53,7 +54,8 @@
</target>

<target name="tests:phantomjs:launch"
description="Launches a GhostDriver.">
description="Launches a GhostDriver."
hidden="true">

<if>
<equals arg1="${behat.launch-phantom}" arg2="true"/>
Expand All @@ -73,7 +75,7 @@
</target>

<target name="tests:phantomjs:kill"
description="Launches a GhostDriver.">
description="Launches a GhostDriver." hidden="true">
<exec command="pgrep phantomjs | xargs kill" logoutput="true" level="info" passthru="true" />
</target>

Expand Down Expand Up @@ -107,19 +109,8 @@
</if>
</target>

<target name="rsync-results">
<property name="reports.remoteDir" value="build-results" />

<drush command="rsync">
<arg>"${reports.localDir}"</arg>
<arg>"${drush.aliases.default}:%files/${reports.remoteDir}"</arg>
</drush>

<!-- @todo Add message with link to new reports. -->
</target>

<!-- Optionally run tests against internal PHP server. -->
<target name="tests:run-server">
<target name="tests:run-server" hidden="true">
<if>
<equals arg1="${behat.run-server}" arg2="true"/>
<then>
Expand Down
2 changes: 1 addition & 1 deletion phing/tasks/validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<foreach list="${phpcs.filesets}" target="validate:phpcs:fileset" param="fileset_refid"/>
</target>

<target name="validate:phpcs:fileset" description="Runs PHP Code Sniffer against only custom modules.">
<target name="validate:phpcs:fileset" description="Runs PHP Code Sniffer against only custom modules." hidden="true">
<echo>Code sniffing ${fileset_refid}</echo>
<!-- Sniff tests. -->
<phpcodesniffer
Expand Down