mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
35 lines
839 B
YAML
35 lines
839 B
YAML
language: php
|
|
|
|
php:
|
|
- 7.2
|
|
- 7.3
|
|
|
|
before_script:
|
|
- phpenv config-rm xdebug.ini
|
|
# - pecl install channel://pecl.php.net/pthreads-3.1.6
|
|
- echo | pecl install channel://pecl.php.net/yaml-2.0.4
|
|
- git clone https://github.com/pmmp/pthreads.git
|
|
- cd pthreads
|
|
- git checkout 1b7da492b944146fa9680f6399bd9c6c6c6095e0
|
|
- phpize
|
|
- ./configure
|
|
- make
|
|
- make install
|
|
- cd ..
|
|
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
|
|
script:
|
|
- composer install --prefer-dist
|
|
- ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G
|
|
- ./vendor/bin/phpunit --bootstrap vendor/autoload.php --fail-on-warning tests/phpunit
|
|
- composer install --no-dev --prefer-dist
|
|
- ./tests/travis.sh -t4
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache/files
|
|
- $HOME/.composer/cache/vcs
|
|
|
|
notifications:
|
|
email: false
|