From ce4a00c264d331c02db8edda80aacb66d82421c9 Mon Sep 17 00:00:00 2001 From: Dengke Tang Date: Thu, 23 Feb 2023 17:14:53 -0800 Subject: [PATCH] I don't know --- .github/workflows/ci.yml | 2 +- dev-scripts/run_tests.bat | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2b8e88..4ec9a0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,7 +118,7 @@ jobs: - name: Build ${{ env.PACKAGE_NAME }} + consumers run: | phpize - .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared + .\configure --with-prefix=${{steps.setup-php-sdk.outputs.prefix}} --enable-awscrt=shared --enable-cli --with-openssl nmake nmake generate-php-ini .\dev-scripts\run_tests ${{steps.setup-php-sdk.outputs.prefix}}\php diff --git a/dev-scripts/run_tests.bat b/dev-scripts/run_tests.bat index 8af0e04..baa20df 100644 --- a/dev-scripts/run_tests.bat +++ b/dev-scripts/run_tests.bat @@ -23,17 +23,8 @@ if "%composer_dir%"=="" ( echo %work_dir% ls x64\ - %PHP_BINARY% -c php-win.ini %composer_dir% update - if %errorlevel% neq 0 ( - echo An error occurred while using composer to get dependence - exit /b %errorlevel% - ) - - %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug - if %errorlevel% neq 0 ( - echo An error occurred while running unittests - exit /b %errorlevel% - ) + call %PHP_BINARY% -c php-win.ini %composer_dir% update + call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug ) endlocal \ No newline at end of file