Skip to content

Commit

Permalink
Merge abf89d2 into cec2901
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Mar 2, 2020
2 parents cec2901 + abf89d2 commit 17dd0ca
Show file tree
Hide file tree
Showing 89 changed files with 352 additions and 3,904 deletions.
58 changes: 20 additions & 38 deletions .travis.yml
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
152 changes: 0 additions & 152 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 17dd0ca

Please sign in to comment.