Skip to content

Commit 2b0e656

Browse files
committed
Set minimum version to php7.1, drop php5.6
1 parent 4453202 commit 2b0e656

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.travis.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,22 @@ cache:
77

88
matrix:
99
include:
10-
# Test the latest
11-
- php: 5.6
12-
env: MONGO_VERSION=stable
10+
# Test with the latest dependencies
1311
- php: 7.1
14-
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable
1512
- php: 7.2
16-
env: ADAPTER_VERSION="^1.0.0" MONGODB_VERSION=stable
1713

18-
# Test with the lowest deps
19-
- php: 5.6
20-
env: MONGO_VERSION=stable COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
14+
# Test with the lowest dependencies
2115
- php: 7.2
22-
# Note that the ADAPTER_VERSION is pinned to 1.0.0 when testing lowest deps
23-
env: ADAPTER_VERSION="1.0.0" MONGODB_VERSION=stable COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
16+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
2417

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

3628
script:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"antimattr/mongodb-migrations-bundle" : "*"
1313
},
1414
"require": {
15-
"php": ">=5.6 || ^7.0",
15+
"php": "^7.1",
1616
"symfony/dependency-injection": "^2.7 || ^3.3 || ^4.0",
1717
"symfony/http-kernel": "^2.7 || ^3.3 || ^4.0",
1818
"symfony/console": "^2.7 || ^3.3 || ^4.0",
@@ -36,7 +36,7 @@
3636
},
3737
"extra": {
3838
"branch-alias": {
39-
"dev-master": "1.1.x-dev"
39+
"dev-master": "2.0.x-dev"
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)