load extension before run composer

This commit is contained in:
Dengke Tang
2023-02-21 18:53:50 -08:00
parent e5e998aba9
commit 31a5785c2d
2 changed files with 15 additions and 10 deletions
+13 -9
View File
@@ -30,12 +30,6 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- name: Install ancient PHPUnit
run: composer require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
- name: Install dependencies
run: composer update --no-interaction
- name: Build for PHP 5.5 - name: Build for PHP 5.5
env: env:
CC: clang CC: clang
@@ -45,6 +39,13 @@ jobs:
./configure ./configure
make make
- name: Install dependencies
run: |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -c php.ini composer.phar require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
php -c php.ini composer.phar update --no-interaction
php-linux-x64: php-linux-x64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@@ -71,9 +72,6 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- name: Install dependencies
run: composer update --no-interaction
- name: Run tests - name: Run tests
env: env:
CC: clang CC: clang
@@ -84,6 +82,12 @@ jobs:
make make
make test make test
- name: Install dependencies
run: |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -c php.ini composer.phar update --no-interaction
# linux-arm: # linux-arm:
# name: ARM (${{ matrix.arch }}) # name: ARM (${{ matrix.arch }})
+2 -1
View File
@@ -12,7 +12,8 @@ if [ -z $PHP_BINARY ]; then
fi fi
if [ ! -d vendor ]; then if [ ! -d vendor ]; then
composer update COMPOSER_BINARY=$(which composer)
$PHP_BINARY -c php.ini $COMPOSER_BINARY update
fi fi
$launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug $launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug