mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-31 08:45:35 +02:00
37 lines
919 B
YAML
37 lines
919 B
YAML
language: php
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
env:
|
|
global:
|
|
- COMPOSER_ARGS=
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- php: 7.2
|
|
dist: bionic
|
|
env: deps=low
|
|
- php: 7.2
|
|
dist: bionic
|
|
- php: 7.3
|
|
dist: bionic
|
|
- php: 7.4
|
|
dist: bionic
|
|
- php: nightly
|
|
dist: bionic
|
|
env: COMPOSER_ARGS=--ignore-platform-reqs
|
|
|
|
before_script:
|
|
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
- composer self-update --snapshot
|
|
- if [ "$deps" == "low" ]; then composer update -n --prefer-dist --prefer-lowest --prefer-stable $COMPOSER_ARGS; fi
|
|
- if [ "$deps" != "low" ]; then composer update -n --prefer-dist $COMPOSER_ARGS; fi
|
|
|
|
script:
|
|
- if [ "`phpenv version-name`" != "nightly" ]; then composer lint; fi
|
|
- composer test
|