Skip to content

Commit

Permalink
Merge pull request #24 from redthor/v2/drop-php56
Browse files Browse the repository at this point in the history
Remove php5.6 support
  • Loading branch information
redthor committed Apr 2, 2018
2 parents 1368f91 + 2b27251 commit 5d73288
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
16 changes: 4 additions & 12 deletions .travis.yml
Expand Up @@ -8,28 +8,20 @@ cache:
matrix:
include:
# Test the latest
- php: 5.6
env: MONGO_VERSION=stable
- php: 7.1
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable
- php: 7.2
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable

# Test with the lowest deps
- php: 5.6
env: MONGO_VERSION=stable COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
- php: 7.2
# Note that the ADAPTER_VERSION is pinned to 1.0.0 when testing lowest deps
env: ADAPTER_VERSION="1.0.0" MONGODB_VERSION=stable COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"

before_script:
# Not using code coverage
- phpenv config-rm xdebug.ini
- if ! [ -z "$MONGO_VERSION" ]; then yes '' | pecl -q install -f mongo-${MONGO_VERSION}; fi
- if ! [ -z "$MONGODB_VERSION" ]; then pecl install -f mongodb-${MONGODB_VERSION}; fi
- if ! [ -z "$ADAPTER_VERSION" ]; then composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}" --ignore-platform-reqs; fi
- pecl install -f mongodb-stable
- composer config "platform.ext-mongo" "1.6.16"
- composer self-update
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
# To be removed when this issue is resolved: https://github.com/composer/composer/issues/5355
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --ignore-platform-reqs --quiet; fi
- composer update -v ${COMPOSER_FLAGS}

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Expand Up @@ -13,10 +13,11 @@
"antimattr/mongodb-migrations" : "*"
},
"require": {
"php": "^5.6|^7.1",
"php": "^7.1",
"doctrine/mongodb": "^1.0",
"symfony/console": "^2.7|^3.3|^4",
"symfony/yaml": "^2.7|^3.3|^4"
"symfony/yaml": "^2.7|^3.3|^4",
"alcaeus/mongo-php-adapter": "^1.0"
},
"require-dev": {
"antimattr/test-case": "~1.0@stable",
Expand All @@ -42,7 +43,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev"
"dev-master": "2.0.x-dev"
}
},
"archive": {
Expand Down

0 comments on commit 5d73288

Please sign in to comment.