Permalink
Browse files

updated build.xml for ci and testing steps

  • Loading branch information...
zircote committed Jul 8, 2012
1 parent 5e57ca0 commit 16d05db39fd6de985021315d7b665f32453b1e3d
Showing with 16 additions and 12 deletions.
  1. +1 −5 .travis.yml
  2. +14 −6 build.xml
  3. +1 −1 tests/phpunit.xml
View
@@ -4,8 +4,4 @@ php:
- 5.3
- 5.4
-before_script:
- - wget http://getcomposer.org/composer.phar
- - php composer.phar install
-
-script: phpunit --configuration tests/phpunit.xml
+script: ant build
View
@@ -1,12 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Hal" default="build" basedir=".">
<property name="source" value="." />
- <target name="clean" description="Clean up and create artifact directories">
- <exec executable="git" failonerror="true">
- <arg line="submodule init" />
+ <target name="clean" description="Cleans the Jobs targets">
+ <exec executable="rm" failonerror="false">
+ <arg line="-rfv" />
+ <arg line="composer.phar"/>
+ <arg line="composer.lock"/>
+ <arg line="vendor"/>
</exec>
- <exec executable="git" failonerror="true">
- <arg line="submodule update" />
+ </target>
+ <target name="setup" description="Clean up and create artifact directories">
+ <exec executable="wget" failonerror="true">
+ <arg line="http://getcomposer.org/composer.phar" />
+ </exec>
+ <exec executable="php" failonerror="true">
+ <arg line="composer.phar install" />
</exec>
</target>
<target name="phpunit"
@@ -15,5 +23,5 @@
<arg line="-c tests/phpunit.xml" />
</exec>
</target>
- <target name="build" depends="clean,phpunit" />
+ <target name="build" depends="setup,phpunit,clean" />
</project>
View
@@ -1,4 +1,4 @@
-<phpunit bootstrap="bootstrap.php"
+<phpunit bootstrap="./bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="false"

0 comments on commit 16d05db

Please sign in to comment.