Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove php5.6 support #24

Merged
merged 4 commits into from Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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