Skip to content

Commit

Permalink
Confirm phar runs correctly after build
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Oct 8, 2016
1 parent 3289f8a commit 5f95fab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/build-phar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ file_put_contents('build/phar/stub.php', \$stub);" > build/phar/bootstrap.php

php -dphar.readonly=0 ./vendor/bin/box build

mv akamai-open-edgegrid-client.phar "akamai-open-edgegrid-client${VERSION}.phar"
mv akamai-open-edgegrid-client.phar "akamai-open-edgegrid-client${VERSION}.phar"

php "akamai-open-edgegrid-client${VERSION}.phar"

echo "<?php
include 'akamai-open-edgegrid-client${VERSION}.phar';
\$client = \Akamai\Open\EdgeGrid\Client::createFromEdgeRcFile();" > test.php
echo "Running test.php";
php test.php
rm test.php

0 comments on commit 5f95fab

Please sign in to comment.