Drupal investigation

build.xml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="PHPUnit_MockObjects">
  3. <target name="clean" description="Cleanup build artifacts">
  4. <delete dir="${basedir}/vendor"/>
  5. <delete file="${basedir}/composer.lock"/>
  6. <delete>
  7. <fileset dir="${basedir}/build">
  8. <include name="**/*.phar" />
  9. </fileset>
  10. </delete>
  11. </target>
  12. <target name="composer" depends="clean" description="Install dependencies with Composer">
  13. <tstamp>
  14. <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
  15. </tstamp>
  16. <delete>
  17. <fileset dir="${basedir}">
  18. <include name="composer.phar" />
  19. <date datetime="${thirty.days.ago}" when="before"/>
  20. </fileset>
  21. </delete>
  22. <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
  23. <exec executable="php">
  24. <arg value="composer.phar"/>
  25. <arg value="install"/>
  26. </exec>
  27. </target>
  28. <target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer">
  29. <exec executable="phpcs">
  30. <arg value="--standard=PSR2" />
  31. <arg value="--extensions=php" />
  32. <arg path="${basedir}/src" />
  33. <arg path="${basedir}/tests" />
  34. </exec>
  35. </target>
  36. </project>