PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.28
Booktics – Appointment Booking Calendar for Service Businesses v1.0.28
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
booktics / vendor / stripe / stripe-php / build.php

build.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.28, at vendor/stripe/stripe-php/build.php

26 lines 640 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 #!/usr/bin/env php
2 <?php
3 \chdir(__DIR__);
4
5 $autoload = (int) $argv[1];
6 $returnStatus = null;
7
8 if (!$autoload) {
9 // Modify composer to not autoload Stripe
10 $composer = \json_decode(\file_get_contents('composer.json'), true);
11 unset($composer['autoload'], $composer['autoload-dev']);
12
13 \file_put_contents('composer.json', \json_encode($composer, \JSON_PRETTY_PRINT));
14 }
15
16 \passthru('composer update', $returnStatus);
17 if (0 !== $returnStatus) {
18 exit(1);
19 }
20
21 $config = $autoload ? 'phpunit.xml' : 'phpunit.no_autoload.xml';
22 \passthru("./vendor/bin/phpunit -c {$config}", $returnStatus);
23 if (0 !== $returnStatus) {
24 exit(1);
25 }
26