Skip to content

Drop support for PHP 5.5, 5.6, 7.0 and 7.1. Test against 7.4. #74

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 37 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,54 @@
sudo: required

os: linux
dist: xenial
language: php
php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- hhvm

matrix:
jobs:
allow_failures:
- php: hhvm

services:
- docker

install:
- composer install
- composer install

before_install:
- docker pull cheprasov/redis-for-tests:latest;
- docker pull cheprasov/redis-cluster-for-tests:latest;

- |
docker run -i -t -d \
-p 127.0.0.1:6381:6381 \
-p 127.0.0.1:6382:6382 \
-p 127.0.0.1:6383:6383 \
-p 127.0.0.1:6384:6384 \
-p 127.0.0.1:6385:6385 \
-p 127.0.0.1:6386:6386 \
-p 127.0.0.1:6387:6387 \
-p 127.0.0.1:6388:6388 \
-p 127.0.0.1:6389:6389 \
-p 127.0.0.1:6390:6390 \
-p 127.0.0.1:6391:6391 \
-p 127.0.0.1:6392:6392 \
cheprasov/redis-for-tests

- |
docker run -i -t -d \
-p 127.0.0.1:7001:7001 \
-p 127.0.0.1:7002:7002 \
-p 127.0.0.1:7003:7003 \
-p 127.0.0.1:7004:7004 \
-p 127.0.0.1:7005:7005 \
-p 127.0.0.1:7006:7006 \
cheprasov/redis-cluster-for-tests

- docker ps;
- sleep 5;
- docker pull cheprasov/redis-for-tests:latest;
- docker pull cheprasov/redis-cluster-for-tests:latest;

- |
docker run -i -t -d \
-p 127.0.0.1:6381:6381 \
-p 127.0.0.1:6382:6382 \
-p 127.0.0.1:6383:6383 \
-p 127.0.0.1:6384:6384 \
-p 127.0.0.1:6385:6385 \
-p 127.0.0.1:6386:6386 \
-p 127.0.0.1:6387:6387 \
-p 127.0.0.1:6388:6388 \
-p 127.0.0.1:6389:6389 \
-p 127.0.0.1:6390:6390 \
-p 127.0.0.1:6391:6391 \
-p 127.0.0.1:6392:6392 \
cheprasov/redis-for-tests

- |
docker run -i -t -d \
-p 127.0.0.1:7001:7001 \
-p 127.0.0.1:7002:7002 \
-p 127.0.0.1:7003:7003 \
-p 127.0.0.1:7004:7004 \
-p 127.0.0.1:7005:7005 \
-p 127.0.0.1:7006:7006 \
cheprasov/redis-cluster-for-tests

- docker ps;
- sleep 5;

before_script:
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]] ; then rm ./tests/Unit/Client/AbstractRedisClientIsolatedTest.php; fi;
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]] ; then rm ./tests/Unit/Client/AbstractRedisClientIsolatedTest.php; fi;
266 changes: 133 additions & 133 deletions COMMANDS.md

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
"RedisClient\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Test\\": "tests/"
}
},
"require": {
"php": ">=5.5"
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"phpunit/phpunit": "^8.5.5",
"cheprasov/php-extra-mocks": "^1.0.0"
}
}
5 changes: 1 addition & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
stopOnIncomplete = "false"
stopOnSkipped = "false"
bootstrap = "vendor/autoload.php"
syntaxCheck = "true"
verbose = "true"
checkForUnintentionallyCoveredCode = "false"
beStrictAboutOutputDuringTests = "false"
beStrictAboutTestSize = "true"
>
<testsuites>
<testsuite name="Build Tests">
Expand All @@ -26,9 +23,9 @@
<directory suffix="Test.php" >./tests/Unit/</directory>
</testsuite>
<testsuite name="Integration tests">
<directory suffix="Test.php" >./tests/Integration/</directory>
<exclude>./tests/Integration/BaseVersionTest.php</exclude>
<exclude>./tests/Integration/ClusterVersionTest.php</exclude>
<directory suffix="Test.php" >./tests/Integration/</directory>
</testsuite>
</testsuites>

Expand Down
156 changes: 78 additions & 78 deletions src/RedisClient/Pipeline/Version/Pipeline2x6.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
/**
* Redis version 2.6
*
* Connection
* @method Pipeline2x6 auth($password)
* @method Pipeline2x6 echo($message)
* @method Pipeline2x6 echoMessage($message) - alias method for reversed word <echo>
* @method Pipeline2x6 ping()
* @method Pipeline2x6 quit()
* @method Pipeline2x6 select($db)
* Transactions
* @method Pipeline2x6 discard()
* @method Pipeline2x6 exec()
* @method Pipeline2x6 multi()
* @method Pipeline2x6 unwatch()
* @method Pipeline2x6 watch($keys)
*
* Hashes
* @method Pipeline2x6 hdel($key, $fields)
Expand All @@ -39,6 +38,31 @@
* @method Pipeline2x6 hsetnx($key, $field, $value)
* @method Pipeline2x6 hvals($key)
*
* Strings
* @method Pipeline2x6 append($key, $value)
* @method Pipeline2x6 bitcount($key, $start = null, $end = null)
* @method Pipeline2x6 bitop($operation, $destkey, $keys)
* @method Pipeline2x6 decr($key)
* @method Pipeline2x6 decrby($key, $decrement)
* @method Pipeline2x6 get($key)
* @method Pipeline2x6 getbit($key, $offset)
* @method Pipeline2x6 getrange($key, $start, $end)
* @method Pipeline2x6 substr($key, $start, $end)
* @method Pipeline2x6 getset($key, $value)
* @method Pipeline2x6 incr($key)
* @method Pipeline2x6 incrby($key, $increment)
* @method Pipeline2x6 incrbyfloat($key, $increment)
* @method Pipeline2x6 mget($keys)
* @method Pipeline2x6 mset(array $keyValues)
* @method Pipeline2x6 msetnx(array $keyValues)
* @method Pipeline2x6 psetex($key, $milliseconds, $value)
* @method Pipeline2x6 set($key, $value, $seconds = null, $milliseconds = null, $exist = null)
* @method Pipeline2x6 setbit($key, $offset, $bit)
* @method Pipeline2x6 setex($key, $seconds, $value)
* @method Pipeline2x6 setnx($key, $value)
* @method Pipeline2x6 setrange($key, $offset, $value)
* @method Pipeline2x6 strlen($key)
*
* Keys
* @method Pipeline2x6 del($keys)
* @method Pipeline2x6 dump($key)
Expand All @@ -61,29 +85,31 @@
* @method Pipeline2x6 ttl($key)
* @method Pipeline2x6 type($key)
*
* Lists
* @method Pipeline2x6 blpop($keys, $timeout)
* @method Pipeline2x6 brpop($keys, $timeout)
* @method Pipeline2x6 brpoplpush($source, $destination, $timeout)
* @method Pipeline2x6 lindex($key, $index)
* @method Pipeline2x6 linsert($key, $after = true, $pivot, $value)
* @method Pipeline2x6 llen($key)
* @method Pipeline2x6 lpop($key)
* @method Pipeline2x6 lpush($key, $values)
* @method Pipeline2x6 lpushx($key, $value)
* @method Pipeline2x6 lrange($key, $start, $stop)
* @method Pipeline2x6 lrem($key, $count, $value)
* @method Pipeline2x6 lset($key, $index, $value)
* @method Pipeline2x6 ltrim($key, $start, $stop)
* @method Pipeline2x6 rpop($key)
* @method Pipeline2x6 rpoplpush($source, $destination)
* @method Pipeline2x6 rpush($key, $values)
* @method Pipeline2x6 rpushx($key, $value)
* SortedSets
* @method Pipeline2x6 zadd($key, array $members)
* @method Pipeline2x6 zcard($key)
* @method Pipeline2x6 zcount($key, $min, $max)
* @method Pipeline2x6 zincrby($key, $increment, $member)
* @method Pipeline2x6 zinterstore($destination, $keys, $weights = null, $aggregate = null)
* @method Pipeline2x6 zrange($key, $start, $stop, $withscores = false)
* @method Pipeline2x6 zrangebyscore($key, $min, $max, $withscores = false, $limit = null)
* @method Pipeline2x6 zrank($key, $member)
* @method Pipeline2x6 zrem($key, $members)
* @method Pipeline2x6 zremrangebyrank($key, $start, $stop)
* @method Pipeline2x6 zremrangebyscore($key, $min, $max)
* @method Pipeline2x6 zrevrange($key, $start, $stop, $withscores = false)
* @method Pipeline2x6 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null)
* @method Pipeline2x6 zrevrank($key, $member)
* @method Pipeline2x6 zscore($key, $member)
* @method Pipeline2x6 zunionstore($destination, $keys, $weights = null, $aggregate = null)
*
* PubSub
* @method Pipeline2x6 publish($channel, $message)
* @method Pipeline2x6 punsubscribe($patterns = null)
* @method Pipeline2x6 unsubscribe($channels)
* Connection
* @method Pipeline2x6 auth($password)
* @method Pipeline2x6 echo($message)
* @method Pipeline2x6 echoMessage($message) - alias method for reversed word <echo>
* @method Pipeline2x6 ping()
* @method Pipeline2x6 quit()
* @method Pipeline2x6 select($db)
*
* Scripting
* @method Pipeline2x6 eval($script, $keys = null, $args = null)
Expand Down Expand Up @@ -118,6 +144,11 @@
* @method Pipeline2x6 sync()
* @method Pipeline2x6 time()
*
* PubSub
* @method Pipeline2x6 publish($channel, $message)
* @method Pipeline2x6 punsubscribe($patterns = null)
* @method Pipeline2x6 unsubscribe($channels)
*
* Sets
* @method Pipeline2x6 sadd($key, $members)
* @method Pipeline2x6 scard($key)
Expand All @@ -134,55 +165,24 @@
* @method Pipeline2x6 sunion($keys)
* @method Pipeline2x6 sunionstore($destination, $keys)
*
* SortedSets
* @method Pipeline2x6 zadd($key, array $members)
* @method Pipeline2x6 zcard($key)
* @method Pipeline2x6 zcount($key, $min, $max)
* @method Pipeline2x6 zincrby($key, $increment, $member)
* @method Pipeline2x6 zinterstore($destination, $keys, $weights = null, $aggregate = null)
* @method Pipeline2x6 zrange($key, $start, $stop, $withscores = false)
* @method Pipeline2x6 zrangebyscore($key, $min, $max, $withscores = false, $limit = null)
* @method Pipeline2x6 zrank($key, $member)
* @method Pipeline2x6 zrem($key, $members)
* @method Pipeline2x6 zremrangebyrank($key, $start, $stop)
* @method Pipeline2x6 zremrangebyscore($key, $min, $max)
* @method Pipeline2x6 zrevrange($key, $start, $stop, $withscores = false)
* @method Pipeline2x6 zrevrangebyscore($key, $max, $min, $withscores = false, $limit = null)
* @method Pipeline2x6 zrevrank($key, $member)
* @method Pipeline2x6 zscore($key, $member)
* @method Pipeline2x6 zunionstore($destination, $keys, $weights = null, $aggregate = null)
*
* Strings
* @method Pipeline2x6 append($key, $value)
* @method Pipeline2x6 bitcount($key, $start = null, $end = null)
* @method Pipeline2x6 bitop($operation, $destkey, $keys)
* @method Pipeline2x6 decr($key)
* @method Pipeline2x6 decrby($key, $decrement)
* @method Pipeline2x6 get($key)
* @method Pipeline2x6 getbit($key, $offset)
* @method Pipeline2x6 getrange($key, $start, $end)
* @method Pipeline2x6 substr($key, $start, $end)
* @method Pipeline2x6 getset($key, $value)
* @method Pipeline2x6 incr($key)
* @method Pipeline2x6 incrby($key, $increment)
* @method Pipeline2x6 incrbyfloat($key, $increment)
* @method Pipeline2x6 mget($keys)
* @method Pipeline2x6 mset(array $keyValues)
* @method Pipeline2x6 msetnx(array $keyValues)
* @method Pipeline2x6 psetex($key, $milliseconds, $value)
* @method Pipeline2x6 set($key, $value, $seconds = null, $milliseconds = null, $exist = null)
* @method Pipeline2x6 setbit($key, $offset, $bit)
* @method Pipeline2x6 setex($key, $seconds, $value)
* @method Pipeline2x6 setnx($key, $value)
* @method Pipeline2x6 setrange($key, $offset, $value)
* @method Pipeline2x6 strlen($key)
*
* Transactions
* @method Pipeline2x6 discard()
* @method Pipeline2x6 exec()
* @method Pipeline2x6 multi()
* @method Pipeline2x6 unwatch()
* @method Pipeline2x6 watch($keys)
* Lists
* @method Pipeline2x6 blpop($keys, $timeout)
* @method Pipeline2x6 brpop($keys, $timeout)
* @method Pipeline2x6 brpoplpush($source, $destination, $timeout)
* @method Pipeline2x6 lindex($key, $index)
* @method Pipeline2x6 linsert($key, $after = true, $pivot, $value)
* @method Pipeline2x6 llen($key)
* @method Pipeline2x6 lpop($key)
* @method Pipeline2x6 lpush($key, $values)
* @method Pipeline2x6 lpushx($key, $value)
* @method Pipeline2x6 lrange($key, $start, $stop)
* @method Pipeline2x6 lrem($key, $count, $value)
* @method Pipeline2x6 lset($key, $index, $value)
* @method Pipeline2x6 ltrim($key, $start, $stop)
* @method Pipeline2x6 rpop($key)
* @method Pipeline2x6 rpoplpush($source, $destination)
* @method Pipeline2x6 rpush($key, $values)
* @method Pipeline2x6 rpushx($key, $value)
*
*/
class Pipeline2x6 extends AbstractPipeline {
Expand Down
Loading