FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stripe-php/justfile at master · stripe/stripe-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stripe
/
stripe-php
Public
Notifications
You must be signed in to change notification settings
Fork
893
Star
4k
Code
Issues
12
Pull requests
4
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
stripe-php
/
justfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
66 lines (49 loc) · 1.75 KB
Breadcrumbs
stripe-php
/
justfile
Copy path
File metadata and controls
66 lines (49 loc) · 1.75 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
set
quiet
import
?
'
../sdk-codegen/utils.just'
# make vendored executables callable directly
export
PATH
:=
"
vendor/bin:"
+
env_var
(
'
PATH'
)
_
default
:
just --list --unsorted
# ⭐ run format, lint, and tests to prepare for CI
prepare
:
format
lint
test
# 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
:
php build.php
{{
autoload
}}
# ⭐ format all files
format
*
args
:
install
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=
512
M vendor
/
bin
/
phpstan analyse lib tests
{{
args
}}
# statically analyze code (strict)
lint-test
:
phpstan analyse examples
/
IteratorExample.php --level=
9
# 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
Back
|
FazBrowse Home
|
New Git URL