mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
Updated Client Detail Header for better mobile fit, lots of progress on stripe pay and some other minor updates
This commit is contained in:
36
vendor/stripe-php-7.0.2/build.php
vendored
Executable file
36
vendor/stripe-php-7.0.2/build.php
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
chdir(dirname(__FILE__));
|
||||
|
||||
$autoload = (int)$argv[1];
|
||||
$returnStatus = null;
|
||||
|
||||
if (!$autoload) {
|
||||
// Modify composer to not autoload Stripe
|
||||
$composer = json_decode(file_get_contents('composer.json'), true);
|
||||
unset($composer['autoload']);
|
||||
unset($composer['require-dev']['squizlabs/php_codesniffer']);
|
||||
file_put_contents('composer.json', json_encode($composer, JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
passthru('composer update', $returnStatus);
|
||||
if ($returnStatus !== 0) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($autoload) {
|
||||
// Only run CS on 1 of the 2 environments
|
||||
passthru(
|
||||
'./vendor/bin/phpcs --standard=PSR2 -n lib tests *.php',
|
||||
$returnStatus
|
||||
);
|
||||
if ($returnStatus !== 0) {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
$config = $autoload ? 'phpunit.xml' : 'phpunit.no_autoload.xml';
|
||||
passthru("./vendor/bin/phpunit -c $config", $returnStatus);
|
||||
if ($returnStatus !== 0) {
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user