-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated code for beta (#1803)
* Update generated code (#1793) * Update generated code for v1399 * Update generated code for v1409 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> * Bump version to 16.4.0 * Added pull request template (#1797) * Add justfile, remove coveralls, and fix AUTOLOAD in CI (#1801) * add justfile and tweak CI + readme * debug test * Debugging * further debugging * restore original composer json * add more logging * maybe fix ci * Fix typo * fix test naming and pass autoload directly to recipe as arugment * Remove unused logline and fix typo * restore composer * remove extra log line * update justfile * add comments * update ci * revert to gh action * ensure dependencies are installed for format and test recipes (#1802) * Update generated code for v1439 * Update generated code for v1441 * Update generated code for v1441 * Update generated code for v1442 * Update generated code for v1443 * Update generated code for v1445 * Update generated code for v1446 * Update generated code for v1448 * Update generated code for v1449 * Update generated code for v1450 * Added CONTRIBUTING.md file (#1806) * minor justfile fixes (#1807) * made v2 event class concrete, and changed convertToStripeObject to use it if we cannot find the identified event subclass (#1805) * Update generated code for v1454 * added CONTRIBUTING.md * Update generated code for v1456 * Update generated code for v1457 * Update generated code for v1460 --------- Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Jesse Rosalia <[email protected]> Co-authored-by: David Brownman <[email protected]>
- Loading branch information
1 parent
4dbdcc0
commit 6904039
Showing
36 changed files
with
174 additions
and
87 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
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
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
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 +1 @@ | ||
v1437 | ||
v1460 |
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
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,59 @@ | ||
set quiet | ||
|
||
import? '../sdk-codegen/utils.just' | ||
|
||
# make vendored executables callable directly | ||
export PATH := "vendor/bin:" + env_var('PATH') | ||
|
||
_default: | ||
just --list --unsorted | ||
|
||
# install vendored dependencies | ||
install *args: | ||
composer install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }} | ||
|
||
# ⭐ run full unit test suite; needs stripe-mock | ||
[no-exit-message] | ||
test *args: install | ||
phpunit {{ args }} | ||
|
||
# run tests in CI; can use autoload mode (or not) | ||
[confirm("This will modify local files and is intended for use in CI; do you want to proceed?")] | ||
ci-test autoload: | ||
./build.php {{ autoload }} | ||
|
||
# ⭐ format all files | ||
format *args: install | ||
PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix -v --using-cache=no {{ args }} | ||
|
||
# check formatting for, but don't modify, files | ||
format-check: (format "--dry-run") | ||
|
||
# ⭐ statically analyze code | ||
lint *args: | ||
php -d memory_limit=512M vendor/bin/phpstan analyse lib tests {{args}} | ||
|
||
# for backwards compatibility; ideally removed later | ||
[private] | ||
alias phpstan := lint | ||
|
||
# called by tooling | ||
[private] | ||
update-version version: | ||
echo "{{ version }}" > VERSION | ||
perl -pi -e 's|VERSION = '\''[.\-\w\d]+'\''|VERSION = '\''{{ version }}'\''|' lib/Stripe.php | ||
|
||
|
||
PHPDOCUMENTOR_VERSION := "v3.0.0" | ||
# generates docs; currently broken? can unhide if working | ||
[private] | ||
phpdoc: | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
if [ ! -f vendor/bin/phpdoc ]; then | ||
curl -sfL https://github.com/phpDocumentor/phpDocumentor/releases/download/{{ PHPDOCUMENTOR_VERSION }}/phpDocumentor.phar -o vendor/bin/phpdoc | ||
chmod +x vendor/bin/phpdoc | ||
fi | ||
|
||
phpdoc |
Oops, something went wrong.