-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
352 additions
and
3,904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,60 @@ | ||
language: php | ||
|
||
services: | ||
- mongodb | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
language: php | ||
|
||
env: | ||
global: | ||
- COMPOSER_ARGS="--no-interaction" | ||
- ADAPTER_DEPS="alcaeus/mongo-php-adapter" | ||
- COVERAGE_DEPS="php-coveralls/php-coveralls" | ||
- MONGO_DRIVER=mongodb | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.6 | ||
- php: 7.2 | ||
env: | ||
- DEPS=lowest | ||
- MONGO_DRIVER=mongo | ||
- php: 5.6 | ||
- php: 7.2 | ||
env: | ||
- DEPS=latest | ||
- MONGO_DRIVER=mongo | ||
- php: 7 | ||
- php: 7.3 | ||
env: | ||
- DEPS=lowest | ||
- php: 7 | ||
- php: 7.3 | ||
env: | ||
- DEPS=latest | ||
- php: 7.1 | ||
- php: 7.4 | ||
env: | ||
- DEPS=lowest | ||
- php: 7.1 | ||
- php: 7.4 | ||
env: | ||
- DEPS=latest | ||
- CS_CHECK=true | ||
- CS_CHECK=false | ||
- TEST_COVERAGE=true | ||
- php: 7.2 | ||
- php: 7.4 | ||
env: | ||
- DEPS=lowest | ||
- php: 7.2 | ||
env: | ||
- DEPS=latest | ||
# Disabled because some lowest dependencies are not compatible with PHP 7.3 | ||
# - php: 7.3 | ||
# env: | ||
# - DEPS=lowest | ||
- php: 7.3 | ||
- php: 7.4 | ||
env: | ||
- DEPS=latest | ||
|
||
before_install: | ||
- alias composer="travis_retry composer" | ||
- composer self-update | ||
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
|
||
install: | ||
- yes '' | pecl -q install -f $MONGO_DRIVER | ||
- composer config platform.ext-mongo '1.999' | ||
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs | ||
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | ||
- if [[ $MONGO_DRIVER == 'mongodb' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $ADAPTER_DEPS ; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi | ||
- composer install $COMPOSER_ARGS --ignore-platform-reqs | ||
- if [[ $DEPS == 'latest' ]]; then composer update $COMPOSER_ARGS ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | ||
- if $TEST_COVERAGE; then composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi | ||
- stty cols 120 && composer show | ||
|
||
script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi | ||
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi | ||
- if $TEST_COVERAGE; then composer test-coverage ; else composer test ; fi | ||
- if $CS_CHECK; then composer cs-check ; fi | ||
|
||
after_script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi | ||
- if $TEST_COVERAGE; then travis_retry php vendor/bin/php-coveralls -v ; fi | ||
|
||
notifications: | ||
email: false |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.