diff --git a/.kokoro/system_tests.sh b/.kokoro/system_tests.sh index bbae9ec02f..ce3bd7c865 100755 --- a/.kokoro/system_tests.sh +++ b/.kokoro/system_tests.sh @@ -48,8 +48,8 @@ export IS_PULL_REQUEST=$KOKORO_GITHUB_PULL_REQUEST_COMMIT bash testing/run_test_suite.sh # Run code standards check on latest version of PHP -if [ ! -z "${IS_PULL_REQUEST}" ] && \ - [ "${RUN_CS_CHECK}" = "true" ] -then +if [ "${RUN_CS_CHECK}" = "true" ]; then + wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer \ + && chmod a+x php-cs-fixer bash testing/run_cs_check.sh fi