Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Drop support for PHP < 7.1 #147

Merged
merged 5 commits into from
Nov 13, 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
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# for php-coveralls
service_name: travis-ci
src_dir: ./
coverage_clover: build/logs/clover.xml
coverage_clover: clover.xml
76 changes: 42 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,53 @@ language: php
sudo: false
dist: trusty

php:
- 7.1
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: nightly

cache:
directories:
- $HOME/.composer/cache
directories:
- $HOME/.composer/cache

services:
- riak
- mongodb
- memcached
- redis-server
- mongodb
- memcached
- redis-server

jobs:
include:
# Test against lowest dependencies
- stage: Test
php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest"

# Test against dev dependencies on the newest version
- stage: Test
php: 7.3
env: DEPS="dev"

before_script:
- ./Tests/travis/install-deps.sh
- composer self-update
- if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- composer update --prefer-dist
- stage: Code Quality
php: 7.1
script:
- ./vendor/bin/phpcs -np --extensions=php --ignore=vendor/*,Tests/* --standard=ruleset.xml .
after_script:

before_install:
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

install:
- if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- composer update --prefer-dist $COMPOSER_FLAGS

script:
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -np --extensions=php --ignore=vendor/*,Tests/* --standard=ruleset.xml .
- ./vendor/bin/phpunit -v --coverage-clover clover.xml

after_script:
- php ./vendor/bin/coveralls -v

matrix:
exclude:
- php: 5.3
dist: trusty
allow_failures:
- php: nightly
include:
- php: 5.3
dist: precise
env: COMPOSER_MEMORY_LIMIT=-1
- php: 5.4
- php: 5.5
- php: 5.6
env: DEPS="dev" COMPOSER_MEMORY_LIMIT=-1
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: nightly
- php ./vendor/bin/coveralls -v
17 changes: 0 additions & 17 deletions Tests/travis/install-deps.sh

This file was deleted.

4 changes: 0 additions & 4 deletions Tests/travis/php.ini

This file was deleted.

68 changes: 34 additions & 34 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
{
"name": "doctrine/doctrine-cache-bundle",
"homepage": "https://www.doctrine-project.org",
"description": "Symfony Bundle for Doctrine Cache",
"keywords": ["cache", "caching"],
"type": "symfony-bundle",
"license": "MIT",
"name": "doctrine/doctrine-cache-bundle",
"homepage": "https://www.doctrine-project.org",
"description": "Symfony Bundle for Doctrine Cache",
"keywords": ["cache", "caching"],
"type": "symfony-bundle",
"license": "MIT",
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
},
{
"name": "Fabio B. Silva",
"email": "fabio.bat.silva@gmail.com"
"name": "Fabio B. Silva",
"email": "fabio.bat.silva@gmail.com"
},
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@hotmail.com"
"name": "Guilherme Blanco",
"email": "guilhermeblanco@hotmail.com"
},
{
"name": "Symfony Community",
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
},
{
"name": "Doctrine Project",
"name": "Doctrine Project",
"homepage": "http://www.doctrine-project.org/"
}
],
"require": {
"php": ">=5.3.2",
"symfony/doctrine-bridge": "~2.7|~3.3|~4.0",
"doctrine/inflector": "~1.0",
"doctrine/cache": "^1.4.2"
"php": "^7.1",
"symfony/doctrine-bridge": "^3.4|^4.0",
"doctrine/inflector": "^1.0",
"doctrine/cache": "^1.4.2"
},
"require-dev": {
"phpunit/phpunit": "~4.8.36|~5.6|~6.5|~7.0",
"symfony/phpunit-bridge": "~2.7|~3.3|~4.0",
"symfony/yaml": "~2.7|~3.3|~4.0",
"symfony/validator": "~2.7|~3.3|~4.0",
"symfony/console": "~2.7|~3.3|~4.0",
"symfony/finder": "~2.7|~3.3|~4.0",
"symfony/framework-bundle": "~2.7|~3.3|~4.0",
"symfony/security-acl": "~2.7|~3.3",
"instaclick/coding-standard": "~1.1",
"satooshi/php-coveralls": "^1.0",
"squizlabs/php_codesniffer": "~1.5",
"phpunit/phpunit": "^7.0",
"symfony/phpunit-bridge": "^3.4|^4.0",
"symfony/yaml": "^3.4|^4.0",
"symfony/validator": "^3.4|^4.0",
"symfony/console": "^3.4|^4.0",
"symfony/finder": "^3.4|^4.0",
"symfony/framework-bundle": "^3.4|^4.0",
"symfony/security-acl": "^2.8",
"instaclick/coding-standard": "~1.1",
"satooshi/php-coveralls": "^1.0",
"squizlabs/php_codesniffer": "~1.5",
"instaclick/object-calisthenics-sniffs": "dev-master",
"instaclick/symfony2-coding-standard": "dev-remaster",
"predis/predis": "~0.8"
"instaclick/symfony2-coding-standard": "dev-remaster",
"predis/predis": "~0.8"
},
"suggest": {
"symfony/security-acl": "For using this bundle to cache ACLs"
Expand All @@ -67,7 +67,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.3.x-dev"
"dev-master": "1.4.x-dev"
}
}
}
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
processIsolation="false"
backupGlobals="false"
stopOnFailure="false"
syntaxCheck="false"
colors="true">

<testsuites>
Expand Down