Skip to content

Commit 5f95fab

Browse files
committed
Confirm phar runs correctly after build
1 parent 3289f8a commit 5f95fab

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tools/build-phar.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ file_put_contents('build/phar/stub.php', \$stub);" > build/phar/bootstrap.php
4141

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

44-
mv akamai-open-edgegrid-client.phar "akamai-open-edgegrid-client${VERSION}.phar"
44+
mv akamai-open-edgegrid-client.phar "akamai-open-edgegrid-client${VERSION}.phar"
45+
46+
php "akamai-open-edgegrid-client${VERSION}.phar"
47+
48+
echo "<?php
49+
include 'akamai-open-edgegrid-client${VERSION}.phar';
50+
\$client = \Akamai\Open\EdgeGrid\Client::createFromEdgeRcFile();" > test.php
51+
echo "Running test.php";
52+
php test.php
53+
rm test.php

0 commit comments

Comments
 (0)