File tree Expand file tree Collapse file tree 5 files changed +6
-46
lines changed Expand file tree Collapse file tree 5 files changed +6
-46
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ env_vars: {
7
7
}
8
8
9
9
env_vars: {
10
- key: " RUN_CS_CHECK "
11
- value: " true "
10
+ key: " TRAMPOLINE_BUILD_FILE "
11
+ value: " github/php-docs-samples/testing/run_cs_check.sh "
12
12
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,3 @@ env_vars: {
15
15
key: " GOOGLE_ALT_CREDENTIALS_FILENAME"
16
16
value: " service-account-kokoro1.json"
17
17
}
18
- env_vars: {
19
- key: " RUN_CS_CHECK"
20
- value: " true"
21
- }
Original file line number Diff line number Diff line change @@ -50,11 +50,6 @@ mkdir -p build/logs
50
50
51
51
export PULL_REQUEST_NUMBER=$KOKORO_GITHUB_PULL_REQUEST_NUMBER
52
52
53
- # Run code standards check when appropriate
54
- if [ " ${RUN_CS_CHECK} " = " true" ]; then
55
- bash testing/run_cs_check.sh
56
- fi
57
-
58
53
# If we are running REST tests, disable gRPC
59
54
if [ " ${RUN_REST_TESTS_ONLY} " = " true" ]; then
60
55
GRPC_INI=$( php -i | grep grpc.ini | sed ' s/^Additional .ini files parsed => //g' | sed ' s/,*$//g' )
Original file line number Diff line number Diff line change @@ -23,5 +23,7 @@ elif [ -f "./php-cs-fixer" ]; then
23
23
PHP_CS_FIXER=" ./php-cs-fixer"
24
24
fi
25
25
26
- DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
27
- $PHP_CS_FIXER fix --dry-run --diff --config=" $DIR /../.php_cs.dist" --path-mode=intersection .
26
+ PROJECT_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) /.."
27
+ DIR=" ${1:- $PROJECT_ROOT } "
28
+
29
+ $PHP_CS_FIXER fix --dry-run --diff --config=" ${PROJECT_ROOT} /.php_cs.dist" --path-mode=intersection $DIR
You can’t perform that action at this time.
0 commit comments