forked from aws/aws-sdk-php
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request aws#336 from aws/replace_phing
Replacing phing with Burgomaster
- Loading branch information
Showing
7 changed files
with
65 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
all: clean coverage docs | ||
|
||
test: | ||
vendor/bin/phpunit | ||
|
||
coverage: | ||
vendor/bin/phpunit --coverage-html=build/artifacts/coverage | ||
|
||
integration: | ||
vendor/bin/phpunit -c phpunit.functional.xml | ||
|
||
view-coverage: | ||
open build/artifacts/coverage/index.html | ||
|
||
clean: | ||
rm -rf build/artifacts | ||
cd docs && make clean | ||
|
||
docs: | ||
cd docs && make html | ||
|
||
view-docs: | ||
open docs/_build/html/index.html | ||
|
||
package: burgomaster | ||
time php build/packager.php | ||
|
||
burgomaster: | ||
mkdir -p build/artifacts | ||
curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.1/src/Burgomaster.php > build/artifacts/Burgomaster.php | ||
|
||
.PHONY: docs burgomaster |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
require __DIR__ . '/artifacts/Burgomaster.php'; | ||
|
||
$stageDirectory = __DIR__ . '/artifacts/staging'; | ||
$projectRoot = __DIR__ . '/../'; | ||
$burgomaster = new \Burgomaster($stageDirectory, $projectRoot); | ||
|
||
foreach (['README.md', 'LICENSE.md', 'NOTICE.md'] as $file) { | ||
$burgomaster->deepCopy($file, $file); | ||
} | ||
|
||
// Copy each dependency to the staging directory. Copy *.php and *.pem files. | ||
$burgomaster->recursiveCopy('src/Aws', 'Aws', ['php', 'json']); | ||
$burgomaster->recursiveCopy('vendor/guzzle/guzzle/src/Guzzle', 'Guzzle', ['php', 'pem']); | ||
$burgomaster->recursiveCopy('vendor/doctrine/cache/lib/Doctrine', 'Doctrine'); | ||
$burgomaster->recursiveCopy('vendor/psr/log/Psr', 'Psr'); | ||
$burgomaster->recursiveCopy('vendor/monolog/monolog/src/Monolog', 'Monlog'); | ||
$burgomaster->recursiveCopy('vendor/symfony/event-dispatcher/Symfony', 'Symfony'); | ||
|
||
$burgomaster->createAutoloader(); | ||
$burgomaster->createZip(__DIR__ . '/artifacts/aws.zip'); | ||
$burgomaster->createPhar(__DIR__ . '/artifacts/aws.phar'); | ||
$burgomaster->startSection('test_phar'); | ||
$burgomaster->debug('Phar output: ' | ||
. $burgomaster->exec('php ' . __DIR__ . '/test_phar.php')); | ||
$burgomaster->endSection(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
<?php | ||
require __DIR__ . '/artifacts/aws.phar'; | ||
Aws\S3\S3Client::factory()->listBuckets(); | ||
|
||
$client = Aws\S3\S3Client::factory([ | ||
'key' => 'foo', | ||
'secret' => 'bar', | ||
'region' => 'us-east-1' | ||
]); | ||
|
||
echo 'Version=' . Aws\Common\Aws::VERSION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters