Skip to content

Commit

Permalink
Moving and simplifying build script. Add this repo as a submodule of …
Browse files Browse the repository at this point in the history
…the main Guzzle framework, and then run phing phar to create a phar file. Updating README.
  • Loading branch information
mtdowling committed Apr 14, 2011
1 parent 1c8a232 commit ea1da7f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 73 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ phpunit.xml
coverage
nbproject
/.svn/
build/guzzle-aws.phar
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,25 @@ installation:
cd /path/to/guzzle
git submodule add git://github.com/guzzle/guzzle-aws.git ./src/Guzzle/Service/Aws

Alternatively, you can build a guzzle-aws phar file and include the phar file
in your project:
You can now build a phar file containing guzzle-aws and the main guzzle framework:

cd build
phing phar

Now you just need to include guzzle-aws.phar in your script. The phar file
will take care of autoloading Guzzle\Service\Aws classes:
Now you just need to include guzzle.phar in your script. The phar file
will take care of autoloading Guzzle classes:

<?php
require_once 'guzzle.phar';
require_once 'guzzle-aws.phar';

## Testing

Run the phing build script to configure guzzle-aws for PHPUnit testing:
Run the phing build script to configure your project for PHPUnit testing:

cd build
phing init
phing

You will be prompted for the full path to your git clone of the main Guzzle
framework.

guzzle-aws uses PHPUnit to run unit tests. Just type "phpunit" on the command line to run the tests.

### More information

- See https://github.com/guzzle/guzzle for more information about Guzzle, a PHP framework for building RESTful webservice clients.
18 changes: 18 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="guzzle-aws" default="init">
<!-- ============================================ -->
<!-- Target: init -->
<!-- ============================================ -->
<target name="init">
<echo msg="Preparing phpunit.xml" />
<echo msg="Please enter the root root path to your git clone of guzzle" />
<input propertyname="path_to_guzzle">Path to guzzle: </input>
<available file="${path_to_guzzle}/src/Guzzle/Guzzle.php" property="correct" value="1"/>
<fail unless="correct" msg="That does not appear to be a path to an installation of Guzzle" />
<copy file="./phpunit.xml.dist" tofile="./phpunit.xml" overwrite="true">
<filterchain>
<expandproperties />
</filterchain>
</copy>
</target>
</project>
21 changes: 0 additions & 21 deletions build/autoload.php

This file was deleted.

40 changes: 0 additions & 40 deletions build/build.xml

This file was deleted.

0 comments on commit ea1da7f

Please sign in to comment.