Skip to content

Commit

Permalink
Merge pull request #10 from danepowell/feature/composer-validate
Browse files Browse the repository at this point in the history
Validate composer files.
  • Loading branch information
grasmash committed May 24, 2016
2 parents b839a0b + bc0d479 commit fdef9cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "acquia/bolt",
"description": "Bolt",
"license": "GPL-3.0",
"require": {
"phing/phing": "2.*",
Expand Down
7 changes: 6 additions & 1 deletion template/build/core/phing/tasks/validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

<!-- Run all validation targets. -->
<target name="validate:all" description="Runs all code validation targets."
depends="validate:lint, validate:phpcs"/>
depends="validate:composer, validate:lint, validate:phpcs"/>

<!-- Verify that composer json and lock files are in sync. -->
<target name="validate:composer" description="Validate composer files.">
<exec dir="${repo.root}" command="composer validate" logoutput="true" checkreturn="true"/>
</target>

<!-- Run linter against all php files in repository. -->
<target name="validate:lint" description="Runs a PHP Lint against all code.">
Expand Down
1 change: 1 addition & 0 deletions template/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "acquia/${project.machine_name}",
"license": "proprietary",
"type": "project",
"description": "${project.acquia_subname}",
"repositories": [
{
"type": "composer",
Expand Down

0 comments on commit fdef9cd

Please sign in to comment.