travis: moved PHP-specific configuration to its own YAML file

this allows it to be imported by other repos using the same config (for example plugins needing PHPStan analysis) without them needing to copy paste big blocks of shit every time something little changes.
This commit is contained in:
Dylan K. Taylor 2020-08-21 17:42:47 +01:00
parent e80ad22702
commit 4fe3401182
2 changed files with 19 additions and 18 deletions

View File

@ -1,21 +1,5 @@
language: php
php:
- 7.3
- 7.4
before_script:
- phpenv config-rm xdebug.ini
- echo | pecl install channel://pecl.php.net/yaml-2.1.0
- git clone https://github.com/pmmp/pthreads.git
- cd pthreads
- git checkout e0f514dfde01c5e7e9cf94c43615918af482a45c
- phpize
- ./configure
- make
- make install
- cd ..
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
import:
source: ./tests/travis/setup-php.yml
script:
- composer install --prefer-dist

View File

@ -0,0 +1,17 @@
language: php
php:
- 7.3
- 7.4
before_script:
- phpenv config-rm xdebug.ini
- echo | pecl install channel://pecl.php.net/yaml-2.1.0
- git clone https://github.com/pmmp/pthreads.git
- cd pthreads
- git checkout e0f514dfde01c5e7e9cf94c43615918af482a45c
- phpize
- ./configure
- make
- make install
- cd ..
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini