mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
load extension before run composer
This commit is contained in:
@@ -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 }})
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user